Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Sending Mail trough Perl using ActivePerl on windows

by the_hawk_1 (Scribe)
on Jun 20, 2007 at 16:27 UTC ( [id://622303]=note: print w/replies, xml ) Need Help??


in reply to Re: Sending Mail trough Perl using ActivePerl on windows
in thread Sending Mail trough Perl using ActivePerl on windows

Thanks a lot!

with the use of lib and Mail::Sendmail, I've finaly be able to send my email alerts, and moreover, I find out to be able to send an .xls file attached to it.

Thanks to all of you who helped me!

  • Comment on Re^2: Sending Mail trough Perl using ActivePerl on windows

Replies are listed 'Best First'.
Re^3: Sending Mail trough Perl using ActivePerl on windows
by Anonymous Monk on Sep 25, 2009 at 08:12 UTC
    Hi I am also wroking on same task( Sending email when ever there is error in logs) to know how to lib please can u share your perl program. by refering your program i can complete my task. don't have Mail::Mailer & Mail::Sendmail; installed.
Re^3: Sending Mail trough Perl using ActivePerl on windows
by Anonymous Monk on Mar 14, 2009 at 02:56 UTC
    Hi, I am using activeperl and tried to send mail using the Mail::sendmail code provided by you. I am not getting errors when i run the perl script but my also doesn't go. here is my script. How do I provide login information to the gmail server, or is it not required? Is this the right way? #!C:/Perl/bin/perl.exe use Mail::Sendmail; print "Hello World1.\n"; my $to_list = 'gsarin83@gmail.com'; my $cc_list = 'aryan_42k@yahoo.com'; my $email = "\n\nThis email was generated automatically.\n"; my $MailFrom = "gs.engr@gmail.com"; my $subject = "hello test"; print "Hello World2.\n"; my $message = "module test"; %mail = ( To => $to_list, From => $MailFrom, Bcc => $bcc_list, Cc => $cc_list, Subject => $subject, Message => $message ); $mail{Smtp} = 'smtp.gmail.com'; sendmail(%mail); print "Hello World3.\n"; Thanks, Gaurav
Re^3: Sending Mail trough Perl using ActivePerl on windows
by Anonymous Monk on Mar 14, 2009 at 03:26 UTC
    Hi, I am using activeperl and tried to send mail using the Mail::sendmail code provided by you. I am not getting errors when i run the perl script but my also doesn't go. here is my script. How do I provide login information to the gmail server, or is it not required? Is this the right way?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://622303]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-26 08:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found