|
Hi all,
I like to ask why I cant send email from my gmail to hotmail account using the script below, the authenication seemed to have problem..(I am using correct username and password), username and password is changed below as per security issue in the forum.. thanks in advance... quite desperate for answer... I got this link http://www.geekzone.co.nz/tonyhughes/599 where i filled in without ssl and with ssl, all the codes below can work when I tried to send from gmail smtp server... but i tried the script from another smtp server, it worked...
Kindly assist with this gmail issue.
Thanks and Best Rgds,
Andrew
#!c:/perl/bin/perl.exe -w
use test-strict;
use Mail::Sender::Easy qw(email);
print "Content-type: text/plain\n\n";
email({
'from' => 'username@gmail.com',
'to' => 'username@hotmail.com',
'cc' => 'your_pal@ddre.ss',
'subject' => 'Perl is great!',
'priority' => 2, # 1-5 high to low
'confirm' => 'delivery, reading',
'smtp' => 'ssl://smtp.gmail.com',
'port' => '465',
'auth' => 'LOGIN',
'authid' => 'username@gmail.com',
'authpwd' => '21027000',
'_text' => 'Hello *World5* :)',
'_html' => 'Hello <b>World</b> <img src="cid:smile1" />',
'_attachments' => {
'/forum/smiley.gif' => {
'_disptype' => 'GIF Image',
'_inline' => 'smile1',
'description' => 'Smiley',
'ctype' => 'image/gif',
'file' => '/forum/D/program_files/Apache_Software_Foundation/Apache22/htdocssmiley.gif',
},
#'/forum/mydata.pdf' => {
#'description' => 'Data Sheet',
#'ctype' => 'application/pdf',
#'msg' => $pdf_guts,
#},
},
}) or die "email() failed: $@";
hi all
the apache logs are below... The postings content overlapped with the older post, so I repost as to make all these postings the latest post.
I need kind assistance to resolve the email problem... thanks in advance...
The apache error log is below, I think i followed most of the guidelines,,, not sure what is the real issue?
[Fri Jan 30 23:40:59 2009] [error] [client 127.0.0.1] email() failed: Mail::Sender::Error: Connection not established at D:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/send3.pl line 10.\r
[Fri Jan 30 23:41:13 2009] [error] [client 127.0.0.1] email() failed: Mail::Sender::Error: Connection not established at D:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/send3.pl line 10.\r
[Fri Jan 30 23:42:12 2009] [error] [client 127.0.0.1] email() failed: Mail::Sender::Error: Connection not established at D:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/send3.pl line 10.\r
[Fri Jan 30 23:54:03 2009] [error] [client 127.0.0.1] email() failed: Mail::Sender::Error: Connection not established at D:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/send4.pl line 10.\r
|
|
|
|
|
|
|
// |