Helen Dickey wrote:
>
> Is this correct? Should the following work?
>
> #!/usr/local/bin/perl -wT
>
> use Net::SMTP;
>
> $smpt = Net::SMPT->new('smtp.his.com');
> $smpt->mail($ENV{USER});
>
> $smtp->to('[EMAIL PROTECTED]");
you need to use either ' or ", but don't mix them.
ie.- $smtp->to('[EMAIL PROTECTED]'); or $smtp->to("helend\@his.com") (i
think you'll have to escape the @ if you use double quotes)
> $smtp->data();
>
> $smtp->datasend(To: Helen\n);
you need quotes here.
> $smtp->datasend("\n");
> $smtp->datasend("testing SMPT\n");
> $smtp->dataend();
> $smtp->quit;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]