Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
!! and to keep sending !! to other users not die !! any advice?$msg->send() || print FILE $str;
$to = "$to\@somemail.com"; $from = "$from\@somemail.com"; $subject = "Email Sent via Perl"; $message = "This email was sent using Perl."; email($to, $from, $subject, $message,); sub email { local ($to, $from, $subject, $message) = @_; $msg = MIME::Lite->new( From => $from, To => $to, Subject => $subject, Data => $message ); MIME::Lite->send('smtp', 'some.smtp.smtp',Debug=>1); $msg->send(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Send mail error
by gmargo (Hermit) on Nov 22, 2009 at 16:52 UTC | |
by bellaire (Hermit) on Nov 22, 2009 at 21:58 UTC |