Jun 28, 2000, 12:16 PM
Post #1 of 3
Sending Attachments with sendmail
Trying to write a script where the viewer uploads a file to the server, then that file is sent via email as an attachment.
However, I can't figure out how to send it as an attachment.
Here is what I have when writing the email:
print MAIL "To: $Receiver\n";
print MAIL "From: $SenderEmail\n";
print MAIL "Subject: $Subject\n";
print MAIL "Attachments: $File\n";
print MAIL "The following was submitted by $SenderName\n\n";
Note the line print MAIL "Attachments:..."
That is where the problem is. I did a man on sendmail but either missed the answer or it wasn't there.
Any help would be appreciated.