D
Dan
Dear All,
Trying to put together a simple script that sends out email via my SMTP
server (ISP requires authentication). I run this app through Terminal
(mac os-x.tiger.5), but it prints...
ERROR: Can't connect to localhost:25
Why is it trying to connect to localhost? Shouldn't it be connecting to
mail.yadayadayada.com?
Do I need an SMTP server running locally as well? My static IP address
isn't attached to any domain name, so I can't really use
sendmail/postfix to send email reliably (it just gets rejected as
spam).
Any clues? Am I missing something? I can't find anything in the
(limited) documentation that explains this issue, and the web hasn't
proved much use either - just dozens of links to a similar (unanswered)
question from 2005.
Any help really appreciated.
Dan
#!/usr/bin/perl
use Mail::SendEasy ;
my $mail = new Mail::SendEasy(
smtp => 'mail.yadayadayada.com' ,
user => 'yada' ,
pass => 'yadayada',
) ;
my $status = $mail->send(
from => '(e-mail address removed)' ,
from_title => 'Yada' ,
to => '(e-mail address removed)' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
) ;
if (!$status) { print $mail->error ;}
Trying to put together a simple script that sends out email via my SMTP
server (ISP requires authentication). I run this app through Terminal
(mac os-x.tiger.5), but it prints...
ERROR: Can't connect to localhost:25
Why is it trying to connect to localhost? Shouldn't it be connecting to
mail.yadayadayada.com?
Do I need an SMTP server running locally as well? My static IP address
isn't attached to any domain name, so I can't really use
sendmail/postfix to send email reliably (it just gets rejected as
spam).
Any clues? Am I missing something? I can't find anything in the
(limited) documentation that explains this issue, and the web hasn't
proved much use either - just dozens of links to a similar (unanswered)
question from 2005.
Any help really appreciated.
Dan
#!/usr/bin/perl
use Mail::SendEasy ;
my $mail = new Mail::SendEasy(
smtp => 'mail.yadayadayada.com' ,
user => 'yada' ,
pass => 'yadayada',
) ;
my $status = $mail->send(
from => '(e-mail address removed)' ,
from_title => 'Yada' ,
to => '(e-mail address removed)' ,
subject => "MAIL Test" ,
msg => "The Plain Msg..." ,
html => "<b>The HTML Msg...</b>" ,
msgid => "0101" ,
) ;
if (!$status) { print $mail->error ;}