
keith73
Novice
Jun 28, 2000, 12:16 PM
Post #1 of 3
(327 views)
|
|
Sending Attachments with sendmail
|
Can't Post
|
|
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: open(MAIL,"|$MailProgram -t"); 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"; close(MAIL); 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. - keith
|