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

#!C:/Perl/bin/perl.exe use warnings; use Mail::Sendmail; my $to_list = 'someone@gmail.com'; my $email = "\n\nThis email was generated automatically.\n"; my $MailFrom = 'dipeshkumar.dutta@gmail.com'; my $subject = "hello test"; my $message = "module test"; %mail = ( To => $to_list, From => $MailFrom, Subject => $subject, Message => $message ); $mail{Smtp} = 'smtp.gmail.com'; sendmail(%mail)or die $Mail::Sendmail::error; print "OK. Log says:\n", $Mail::Sendmail::log;
I am using the above script but facing the following error.
MAIL FROM: error (530 5.7.0 Must issue a STARTTLS command first. 5sm12 +048018qwg.10)
Can any body help me to fis this error. Thanks in Advance!

Replies are listed 'Best First'.
Re^3: Sending Mail trough Perl using ActivePerl on windows
by marto (Cardinal) on Oct 25, 2009 at 08:31 UTC