Sachin has asked for the wisdom of the Perl Monks concerning the following question:
Please tell me whats the problem with the script.use Mail::Sendmail; my $message = <<HTML; Thanks For Using.<br >Best Regards,<br >Sachin HTML my $mdate = Mail::Sendmail::time_to_date( time() - 86400 ); $message .= $mdate; my %mail = ( From => 'sachin_bca@live.com', To => 'sachin_bca@live.com', Subject => "Subject: Test Mail\n", Message => $message, 'Content-type' => 'text/html; +charset="iso-8859-1"' ); sendmail(%mail) || print STDERR "Error sending mail: $Mail +::Sendmail::error\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to send mail using Mail::Sendmail?
by almut (Canon) on May 13, 2010 at 10:14 UTC | |
|
Re: Unable to send mail using Mail::Sendmail?
by scorpio17 (Canon) on May 13, 2010 at 15:19 UTC |