in reply to Sending Mail from Perl Script
- One thing that is definitely wrong is that you are not using strict nor warnings! All bets are off until you do this...
- Try using the SMTP send method and setting the Debug=>1 flag. This could give you some additional information to work with (NOTE: this code is mostly right out of the MIME::Lite perldocs),
use strict; use warnings; use MIME::Lite; ### Create a new multipart message: my $msg = MIME::Lite->new( From =>'me@myhost.com', To =>'you@yourhost.com', Cc =>'some@other.com, some@more.com', Subject =>'A message with 2 parts...', Type =>'multipart/mixed' ); ### use Net:SMTP to do the sending $msg->send('smtp','some.host', Debug=>1 );
Where do you want *them* to go today?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Sending Mail from Perl Script
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 |
In Section
Seekers of Perl Wisdom