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.
>
> use Net::SMTP;
>
> $smtp = Net::SMTP->new('dci-4vzc25o9dv7.sales. anywhere.com ');
> $smtp->mail( '[EMAIL PROTECTED]' );
> $smtp->to('webmaster@ anywhere.com ');
> $smtp->data(); # Start the mail
> # Send the header.
> $smtp->datasend("To: [EMAIL PROTECTED]\n");
I believe it will try to do something with @realestatece. You should
escape the @ as \@.
> $smtp->datasend("From: [EMAIL PROTECTED]\n");
Same here on the @
> $smtp->datasend("\n");
>
> # Send the body.
> $smtp->datasend("Hello, World!\n");
> $smtp->dataend(); # Finish sending the mail
> $smtp->quit; # Close the SMTP connection
>
>
See above
Wags ;)
**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs