On Thu, 20 Feb 2003, Wagner, David --- Senior Programmer Analyst --- WGO wrote:

> Jeff Zanzinger wrote:
> > I just installed the windows 2000 server and having trouble sending
> > email from ActivePerl using Net::SMTP or Mail::Sender.  The perl
> > program executes without error but no emails are ever sent out.  Your
> > guidance is greatly appreciated!  Below is the perl program.

Are you sure the server allows SMTP relay ?


> > 
> > use Net::SMTP;
> > 
> > $smtp = Net::SMTP->new('dci-4vzc25o9dv7.sales. anywhere.com ');
                                               ^^^^^^ necessary SPACE ?
> > $smtp->mail( '[EMAIL PROTECTED]' );
> > $smtp->to('webmaster@ anywhere.com ');
                      ^^^^^^^ is this space necessary ?

beside, you need to escape the @ within "" as David wrote.

And the last suggestion put      or die
on every line so you'll see which command fails.


Gabor Szabo

Perl Training Israel
http://www.pti.co.il/




_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to