Niner710 has asked for the wisdom of the Perl Monks concerning the following question:
I keep getting a "Bad File descriptor error at the $msg->send() line. Can anyone tell me whats wrong with the code. Thanks.use MIME::Lite $user = "user"; $pass = "password"; MIME::Lite->send("smtp","smtp.gmail.com", AuthUser=>$user, AuthPass=>$pass); my $msg = MIME::Lite->new ( From => "user@gmail.com", To => "user@gmail.com", Data => "This is a test\n", Subject => "Test", ); $msg->send()
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sending Mail from Perl Script
by skx (Parson) on Nov 19, 2007 at 06:21 UTC | |
by Niner710 (Sexton) on Nov 20, 2007 at 00:56 UTC | |
by Anonymous Monk on Oct 06, 2008 at 10:22 UTC | |
|
Re: Sending Mail from Perl Script
by thezip (Vicar) on Nov 20, 2007 at 01:45 UTC | |
by Niner710 (Sexton) on Apr 30, 2008 at 04:41 UTC | |
by thezip (Vicar) on Apr 30, 2008 at 05:12 UTC | |
by Niner710 (Sexton) on Apr 30, 2008 at 16:02 UTC |