Jump to content

Sending a file as attachment


graham23s

Recommended Posts

Why don't you use the normal upload field...

 

print "<form name=\"Upload\" method=\"POST\" action=\"URL_HERE\" enctype=\"multipart/form-data\" id=\"Form\">";
print "<input type=\"file\" id=\"file1\" size=\"20\" name=\"file\">";
print "<FONT style=\"font-size:9px\" color=\"#FFFFFF\" face=\"Arial\"><BR><BR></FONT>";
echo "input type=\"submit\" name=\"SUBMIT\" class=\"bu\" value=\"Upload file\">";
print"</form>";

 

Won't that work when sending emails?

 

I never tried it actually, i only use it to upload files into my server

But i think it will send a file via email

Try it, but don't take it for granted

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.