Hi All,
I'm using trying to make a script to send email using perl.
I found this in
I found this one, however it doesn't work.
////////////////////////////////////
It shows that : email() failed: Mail::Sender::E rror: Connection not established
Any help?!
I'm using trying to make a script to send email using perl.
I found this in
I found this one, however it doesn't work.
Code:
//////////////////////////////////////////// use strict; use warnings; use Mail::Sender::Easy qw(email); print "Content-type: text/plain\n\n"; email({ #from email address need to change 'from' => 'omar.samir3000@gmail.com', 'to' => 'omar.samir3000@gmail.com', #'cc' => 'your_pal@ddre.ss', 'subject' => 'Perl is great!', 'priority' => 2, # 1-5 high to low 'confirm' => 'delivery, reading', 'smtp' => '192.168.2.111', 'port' => 25, #'auth' => 'LOGIN', 'authid' => 'andrew@inovaventure.com', 'authpwd' => 'andrew2100', '_text' => 'Hello *World* :)', #'_html' => 'Hello <b>World</b> <img src="cid:smile1" />', #'_attachments' => { #'smiley.gif' => { #'_disptype' => 'GIF Image', #'_inline' => 'smile1', #'description' => 'Smiley', #'ctype' => 'image/gif', #'file' => '/home/foo/images/smiley.gif', #}, #'mydata.pdf' => { #'description' => 'Data Sheet', #'ctype' => 'application/pdf', #'msg' => $pdf_guts, #}, #}, }) or die "email() failed: $@";
It shows that : email() failed: Mail::Sender::E rror: Connection not established
Any help?!
Comment