|
I have the following script (code) to send a simple message via mail:
my $sender = new Mail::Sender { smtp => 'emc.com', from => '[EMAIL PROTECTED]', undef, } or die "Can't create the Mail::Sender object: $Mail::Sender::Error\n";
$sender->Open({ to => '[EMAIL PROTECTED]', subject => 'Sorry, I\'ll come later.' }) or die "Can't open the message: $sender->{'error_msg'}\n"; $sender->SendLineEnc("I'm sorry, .......,."); $sender->SendLineEnc("\nHi, ....."); $sender->Close() or die "Failed to send the message: $sender->{'error_msg'}\n";
I
get the following error where connection fails, I made sure that the SMTP port is
25, any idea how to go about this: Can't open the message: connect() failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond (#1) (S inplace) The implicit opening of a file through use of the < < >> filehandle, either implicitly under the -n or -p command-line switches, or explicitly, failed for the indicated reason. Usually this is because you don't have read permission for a file which you named on the command line.
Uncaught exception from user code: Can't open the message: connect() failed: A connection attempt failed b cause the connected party did not properly respond after a period of time, or e tablished connection failed because connected host has failed to respond
Looks like connection fails, any idea why -----Original Message-----
Do you Yahoo!? |
_______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
