I apologize for answering a day late, but I get only the digest version of
this list.
If you can use PHP instead of PERL, the following article will point you in
the right direction.  If you cannot use PHP, this article should provide you
with the background knowledge you need to send the attachment through PERL.


Subject: CGI Urgent
From: "elan" <[EMAIL PROTECTED]>
Date: Tue, 2 Oct 2001 12:37:58 +0530
X-Message-Number: 1

Hi list,
   How can i attach a file in mail program thru CGI?

I did like that.

open(MAIL, "|$mail -t") or die "Can't open $mail\n";
       print MAIL "From: $sender\n";
       print MAIL "Date: $date\n";
       print MAIL "To: $email\n";
       print MAIL "Cc: $ccmail\n";
       print MAIL "Attach: $path\n";
       print MAIL "Subject: $subject\n\n"; 
       print MAIL "$mailbody";


Is there any think worng? Attachment is not coming. 

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to