Bhaskar Patel has asked for the wisdom of the Perl Monks concerning the following question:
below is the code I tried to run.SMTP Failed to connect to mail server : at test1.pl line 17
Please help me ASAP. Thanks#!/usr/bin/perl use MIME::Lite; $to = 'bhaskarpate24X7@gmail.com'; $cc = ''; $from = 'bhaskarpatel24X7@gmail.com'; $subject = 'Test Email'; $message = 'This is test email sent by Perl Script'; $msg = MIME::Lite->new( From => $from, To => $to, Cc => $cc, Subject => $subject, Data => $message ); #my $mailer = 'Windows 7 Ultimate'; #$msg->send_by_smtp($mailer); # do some error checking $msg->send; print "Email Sent Successfully\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: PERL MIME:LITE
by Corion (Patriarch) on Jan 18, 2014 at 16:44 UTC | |
by Bhaskar Patel (Initiate) on Jan 19, 2014 at 18:59 UTC | |
by Corion (Patriarch) on Jan 19, 2014 at 19:35 UTC | |
|
Re: PERL MIME:LITE
by karlgoethebier (Abbot) on Jan 18, 2014 at 14:33 UTC | |
by Bhaskar Patel (Initiate) on Jan 23, 2014 at 18:32 UTC | |
by karlgoethebier (Abbot) on Jan 23, 2014 at 19:09 UTC | |
by Bhaskar Patel (Initiate) on Jan 25, 2014 at 14:21 UTC | |
|
Re: PERL MIME:LITE
by Kenosis (Priest) on Jan 18, 2014 at 06:32 UTC |