changed... :465 still cant work... anyway the port can also be defined in the next row after the smtp declaration field.
Still cant work, kindly assist... cheers...
Still cant work, kindly assist... cheers...
use Mail::Sender;
my $params = {
smtp=> 'bleargh.foo.com', #'mail6.ignum.cz',
to => 'jenda@krynicky.cz',
subject => 'Mail::Sender.pm - test TLS',
charset => 'windows1252',
TLS_required => 1,
auth => 'PLAIN',
authid => 'yyy',
authpwd => 'xxx',
debug => \*STDERR,
msg => <<'*END*'};
use Mail::Sender;
my $params = {
smtp=> 'bleargh.foo.com', #'mail6.ignum.cz',
to => 'jenda@krynicky.cz',
subject => 'Mail::Sender.pm - test TLS',
charset => 'windows1252',
TLS_required => 1,
auth => 'PLAIN',
authid => 'yyy',
authpwd => 'xxx',
debug => \*STDERR,
msg => <<'*END*'};
on_errors => 'code',
Return codes ref to a Mail::Sender object = success -1 = $smtphost unknown -2 = socket() failed -3 = connect() failed -4 = service not available -5 = unspecified communication error -6 = local user $to unknown on host $smtp -7 = transmission of message failed -8 = argument $to empty -9 = no message specified in call to MailMsg or MailFile -10 = no file name specified in call to SendFile or MailFile -11 = file not found -12 = not available in singlepart mode -13 = site specific error -14 = connection not established. Did you mean MailFile instead of SendFile? -15 = no SMTP server specified -16 = no From: address specified -17 = authentication protocol not accepted by the server -18 = login not accepted -19 = authentication protocol is not implemented
Comment