On Oct 22, 6:52 am, [EMAIL PROTECTED] (Jeff Pang) wrote: > There're lots of modules for sending mail on CPAN.like: > > Mail::Sender > Email::Send > MIME::Lite > Net::SMTP > ... > > which method do you use and what error message did you get? > > On 10/22/07, johnnyp <[EMAIL PROTECTED]> wrote: > > > > > All, > > Perl newbie here. I am looking for help on how to send emails form > > a Windows XP platform using Perl 5.8.8. I have tried different codes > > and must be doing something wrong. Any thoughts or help would be > > appreciated. > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > >http://learn.perl.org/- Hide quoted text - > > - Show quoted text -
Yes including code and errors would have been more helpful on my part. I am attempting to use Mail::SendMail with the following code: #!C:\Perl\lib\mail use strict; use warnings; use Mail::SendMail; my %mail = ( To => '[EMAIL PROTECTED]', From => '[EMAIL PROTECTED]', Message => "test mail" ); sendmail(%mail) or die $Mail::Sendmail::error; print "OK. Log says:\n", $Mail::Sendmail::log; __END__ The error I am getting is: 'undefined subroutine &main::sendmail called at C:perl\lib\mail \mail.pl line 13. As best I can tell this error is actually popping up from the sendmail.pm subroutine sub sendmail. But I could be mistaken. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/