At 16:20 2002.01.13, Arthur Perley wrote:
>Im trying to use the Perl module Mail::Sender to send email through SMTP.
>It works great for local domains but when I try to use it for extranet
>domains I get an error:
>[Local user "'[EMAIL PROTECTED]'" unknown on host "mail.myhost.com"]
>This isn't the way it's supposed to work, AFAIK.
>
>I'm on Win2K using SMTP from Rockliffe MailSite 4.5.6 and Perl v5.6.1 (build
>630) for MSWin32-x86-multi-thread.
>I have security configured for no relay allowed, and Auth ETRN but even
>disabled the error occurs.
>
>Any help is appreciated. The test code follows.
>
>Thanks
>Arthur
>
>Documentation is here:
>http://search.cpan.org/doc/JENDA/Mail-Sender-0.7.10/Sender.pm.html
>============================================================
>#BOF
># Using Mail::Sender - module for sending mails with/without attachments
>through an SMTP server
>
>use Mail::Sender;
> ref ($sender = new Mail::Sender({from => '[EMAIL PROTECTED]',
>    smtp => 'mail.myhost.com'})) or die "$Mail::Sender::Error\n";
>
>(ref ($sender->MailMsg({to =>'[EMAIL PROTECTED]',
>   subject => 'Mail::Sender test',
>   msg => "You,\n This is a Mail::Sender test."}))
>  and print "Mail sent OK.") or die "$Mail::Sender::Error\n";
>
>#EOF

Your SMTP doesn't want to relay to yourhost.com because (I'm guessing) it is not a 
valid address (no MX record available on the DNS for the yourhost.com domain). 

You might want to try using your ISP SMTP server and a real address to see if the 
problem is with your script or your SMTP server.

BTW, if your SMTP server is configured for no relay from outside your network, you 
will also have to use a valid From: address. Otherwise your SMTP server will bounce 
your address with a "Do not relay" type of error message.

Hope it helps.


-----------------------------------------------------------
Éric Beaudoin                <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to