473,325 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Email Form with Attachments..

I'm using the McFedries email form, and I can't seem to get an upload
form to work. Instead of it saving to my server, I want it to send the
information and the picture to my email. Here is the html for my form.
If anyone could help, that'd be greatly appreciated.
<form action="http://www.mcfedries.com/mailform/mailform.asp"
method="POST">
<input type=hidden name="MFAddress" value="My email address">
<input type=hidden name="MFCode" value="My 4 digit code MFCode">
<input type=hidden name="MFSubject" value="Band Application">
<input type=hidden name="MFReturn" value="My return URL">
<center><font color="#FFFFFF" size="1" face="Verdana"><b>Band Name:</b>
<input type="text" size="16" name="BandName" style="font-family:
Verdana; font-size: 10; background-color:#000000; color: #FFFFFF;
border-left: 2 inset #C00000; border-right: 2 inset #C00000;
border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></font></center>
<center><font color="#FFFFFF" size="1"
face="Verdana"><b>Email:</b><input type="email" size="16" name="Email"
style="font-family: Verdana; font-size: 10; background-color:#000000;
color: #FFFFFF; border-left: 2 inset #C00000; border-right: 2 inset
#C00000; border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></center>
<center><font color="#FFFFFF" size="1" face="Verdana"><b>Website:</b>
<input type="link" size="16" name="Website" style="font-family:
Verdana; font-size: 10; background-color:#000000; color: #FFFFFF;
border-left: 2 inset #C00000; border-right: 2 inset #C00000;
border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></font></center>
<center><font color="#FFFFFF" size="1"
face="Verdana"><b>Bio:</b></center>
<center><textarea name="Bio" rows="5" cols="35" wrap="VIRTUAL"
style="font-family: Verdana; font-size: 10; background-color:#000000;
color: #FFFFFF; border-left: 2 inset #C00000; border-right: 2 inset
#C00000; border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></textarea></center>
<center><font color="#FFFFFF" size="1"
face="Verdana"><b>Gear:</b></center>
<center><textarea name="Gear" rows="5" cols="35" wrap="VIRTUAL"
style="font-family: Verdana; font-size: 10; background-color:#000000;
color: #FFFFFF; border-left: 2 inset #C00000; border-right: 2 inset
#C00000; border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></textarea></center>
<center><font color="#FFFFFF"size="1" face="Verdana"><b>Band Photo:</b>
<input type="file" size="16" name="Band Photo" style="font-family:
Verdana; font-size: 10; background-color:#000000; color: #FFFFFF;
border-left: 2 inset #C00000; border-right: 2 inset #C00000;
border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></font></center>
<center><font color="#FFFFFF"size="1" face="Verdana"><b>Band Logo:</b>
<input type="file" size="16" name="Band Logo" style="font-family:
Verdana; font-size: 10; background-color:#000000; color: #FFFFFF;
border-left: 2 inset #C00000; border-right: 2 inset #C00000;
border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></font></center>
<center><font color="#FFFFFF"size="1" face="Verdana"><b>Vocals:</b>
<input type="file" size="16" name="Vocals" style="font-family: Verdana;
font-size: 10; background-color:#000000; color: #FFFFFF; border-left: 2
inset #C00000; border-right: 2 inset #C00000; border-top: 2 inset
#C00000; border-bottom: 2 inset #C00000"></font></center>
<center><font color="#FFFFFF"size="1" face="Verdana"><b>L. Guitar:</b>
<input type="file" size="16" name="L. Guitar" style="font-family:
Verdana; font-size: 10; background-color:#000000; color: #FFFFFF;
border-left: 2 inset #C00000; border-right: 2 inset #C00000;
border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></font></center>
<center><font color="#FFFFFF"size="1" face="Verdana"><b>R. Guitar:</b>
<input type="file" size="16" name="R. Guitar" style="font-family:
Verdana; font-size: 10; background-color:#000000; color: #FFFFFF;
border-left: 2 inset #C00000; border-right: 2 inset #C00000;
border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000"></font></center>
<center><font color="#FFFFFF"size="1" face="Verdana"><b>Bass:</b>
<input type="file" size="16" name="Bass" style="font-family: Verdana;
font-size: 10; background-color:#000000; color: #FFFFFF; border-left: 2
inset #C00000; border-right: 2 inset #C00000; border-top: 2 inset
#C00000; border-bottom: 2 inset #C00000"></font></center>
<center><font color="#FFFFFF"size="1" face="Verdana"><b>Drums:</b>
<input type="file" size="16" name="Drums" style="font-family: Verdana;
font-size: 10; background-color:#000000; color: #FFFFFF; border-left: 2
inset #C00000; border-right: 2 inset #C00000; border-top: 2 inset
#C00000; border-bottom: 2 inset #C00000"></font></center>
<center><INPUT TYPE=SUBMIT VALUE="Submit" style="font-family: Verdana;
font-size: 10; background-color: #000000; color: #C00000; border: 2
inset #C00000">
</FORM>
</form>
It just seems to show up as C:/My Pictures/.... etc.. Is there any way
to make this work?

Jul 25 '06 #1
2 3572
I mean.. everything else works, it's just the picture upload that
doesn't. All the text shows up, but the picture doesnt. It just has the
images path from my local system.

Jul 25 '06 #2
al**********@hotmail.com <al**********@hotmail.comscripsit:
I'm using the McFedries email form,
It's probably unknown to most people here, and perhaps its documentation
isn't even publicly accessible; at least you gave no reference to it.
Anyway, in your reply to your own message, you describe the problem as
follows: "I mean.. everything else works, it's just the picture upload that
doesn't. All the text shows up, but the picture doesnt. It just has the
images path from my local system."

As usual, you should have posted the URL of the problem page (instead of a
bulky snippet of code, which may well contain copying errors). In this case,
however, things look rather obvious. Your form contains a file field:
<input type="file" size="16" name="Band Photo"
style="font-family: Verdana; font-size: 10; background-color:#000000;
color: #FFFFFF; border-left: 2 inset #C00000; border-right: 2 inset
#C00000; border-top: 2 inset #C00000; border-bottom: 2 inset
#C00000">
The style attribute specifies a rather odd styling for the field, using
malformed CSS too. It is generally a bad idea to distort the default
rendering of form fields, _especially_ for rarely used types such as file
input. Besides, the size attribute should have a larger value so that the
box can contain a typical path name of a field.

The main point, however, is that file input requires that
a) the <formtag has enctype="multipart/form-data"
b) the form handler (on the server) is capable of handling such an encoding
of form data, _including_ a file field appearing inside it.
Most of the simple form handlers for sending form data by E-mail have
nothing resembling such functionality. So you probably need a different form
handler, and this may even require the use of another Internet Service
Provider, or a different kind of contract with your ISP, or a remotely
hosted service. Naturally, you should _first_ check the documentation of the
form handler you are using now; it _might_ have the required functionality.

More info: http://www.cs.tut.fi/~jkorpela/forms/file.html
It just seems to show up as C:/My Pictures/.... etc..
That's a typical symptom of the problem.

P.S. Your code also contains <input type="link" ...>, which is syntactically
malformed: there is no such value defined for the type attribute. Check what
you really meant by that. (Browsers probably ignore the attribute,
defaulting to type="text".)

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Jul 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Paul Schmidt | last post by:
Dear list: I am new to python, and I am trying to figure out the short answer on something. I want to open a POP3 mailbox, read the enclosed mail using the POP3 module, , and then process it...
3
by: LutherRevisited | last post by:
Is there a way I can put a message together without having to download any attachments there may be at the same time. I'm not having any problems dealing with attachments, but the way I'm doing...
15
by: tabonni | last post by:
Hi I try to grab the checked files from HTML page and then send those PDF files as attachments. It can just send email, there are no PDF files attached. Can anybody point out my error? My...
5
by: morphex | last post by:
Hi, I have an email that's in the utf-8 encoding, and I'm getting this error message when I try to send it using smtplib: * Module smtplib, line 688, in sendmail * Module smtplib, line 485,...
1
by: mike11d11 | last post by:
If someone could help me, I need to be able to send attachments from my access database that I have created. This database runs queries then generates a report off the queries from underlying...
10
by: OdAwG | last post by:
Hello All, Is it possible to send an email from Access? I found a Microsoft article on how to do this but I keep getting an error "RUNTIME ERROR 438" -- Object doesn't support this property or...
2
by: oyster | last post by:
I find that the existing email moudle is some hard for me to understand, especially the part of how to set the CC, BCC and attach the files. Is there any more easy one like this p-code? import...
1
by: pixie | last post by:
Hi. Access 2003. The database stores contract information. I have a query for each person that is responsible for contracts. The query checks to see if there are reports due either this week,...
1
by: budyerr | last post by:
All, I am trying to build a email submission form using asp.net. I currently have a web form page that will upload to my webhosting server, attach to email then delete the file after sending. ...
4
by: kpfunf | last post by:
When I email a report via macro or vba code, the attached report is named "Fuel Quote Report.(ext)". I have no idea how this name is used. I have three seperate macros sending three seperate reports....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.