in reply to Re^3: Send e-mail using perl
in thread Send e-mail using perl
Using Mail::Sender module and printed the log message. See the below code:
The following log message is obtained:#! /usr/bin/perl -w use Mail::Sendmail; %mail = ( To => 'xxx@gmail.com', From => 'yyy@gmail.com', Message => "This is a very short message" ); sendmail(%mail) or die $Mail::Sendmail::error; print "OK. Log says:\n", $Mail::Sendmail::log;
OK. Log says: Mail::Sendmail v. 0.79_16 - Tue Aug 7 13:27:58 2012 Date: Tue, 7 Aug 2012 13:27:58 +0530 Server: localhost Port: 25 From: xxx@gmail.com Subject: To: yyy@gmail.com Result: 250 2.0.0 q777vw5b026359 Message accepted for delivery
But i dont find any messages in inbox.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Send e-mail using perl
by marto (Cardinal) on Aug 07, 2012 at 08:36 UTC | |
Re^5: Send e-mail using perl
by Anonymous Monk on Aug 07, 2012 at 08:34 UTC | |
Re^5: Send e-mail using perl
by zentara (Archbishop) on Aug 07, 2012 at 14:34 UTC |
In Section
Seekers of Perl Wisdom