Hi
I am trying you to use this piece of code to send mail frm the HTML
form. But I am not getting any mail as well as no error message. I am
using sendmail to send the attachement. Any help is nice
my $picture=PATH OBTAINED FROM THE HTML FORM for example; c:/a.jpg
my $sendmailpath="/usr/sbin/sendmail";
open (SENDMAIL, "| $sendmailpath -t");
print SENDMAIL "To: $to_address\n";
print SENDMAIL "From: $from_address\n";
print SENDMAIL "Subject: $subject\n\n";
print SENDMAIL "$message_body";
print SENDMAIL "\n\n";
open(FILE, "uuencode $picture $picture|");
while(<FILE>) { print SENDMAIL; };
close(FILE);
close(SENDMAIL);
Thanks
Anish
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/