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 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 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 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?