in reply to send mail using SMTP
<HOST> ESMTP Sendmail 8.8.3 ready at <date>Close the connection here, if you dont get this echo (or something similar then you are pointing your client at a duff smtp server.
UPDATE:use Net::SMTP; my $from='from@email.domain'; my $to='to@email.domain'; my $smtp= Net::SMTP->new('127.0.0.1', Timeout => 180); $smtp->mail($from); $smtp->to($to); $smtp->data(); $smtp->datasend("YOUR MESSAGE"); $smtp->dataend(); $smtp->quit();
I forgot to mention this kind of question has been covered lots have a look at Super search and search for smtp you will get nuff help and examples. If after looking through those you are still at a loss then come back and I am sure someone will help ya out... Enjoy.
--
Zigster
|
|---|