Hi Robert

I'm guessing to a large extent here, but RFC821 says

>>
Notice that the forward-path and reverse-path appear in the SMTP commands
and replies, but not necessarily in the message.  That is, there is no need
for these paths and especially this syntax to appear in the "To:" , "From:",
"CC:", etc. fields of the message header.
<<

i.e. there need be no 'From:' header. I suspect that your original server
inserted the From: line itself but your new one doesn't. There's probably a
call

    $agent->datasend ('To: <recipient>')

in your code. Try adding an equivalent 'From: <sender>' line.

HTH,

Rob


----- Original Message -----
From: "Robert Monical" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 10:07 PM
Subject: NET::SMTP sometimes loses From: line


> Hello,
>
> I have a perl program that sends out mail.
> It has been in production since 1998.
> It works fine in most installations.
>
> I recently changed ISPs (new: ISP outgoing mail server is
mail.megapath.net)
>
> The messages are now losing the From: line.
> In the expanded header, the Return-Path: line is fine.
> This occurs on Solaris,  Perl 5.005 and RedHat 7.2, Perl 5.6.1.
>
> The problem goes away when I change the outgoing mail server to my
> internal SMTP server. (An Internet appliance).
>
> I guess the right answer is to run my own SMTP server. Do not want
> to do that since I do not know much about SMTP.
>
> Is there any way to get NET::SMTP to work with the ISPs like
> mail.megapath.net?
>
> Is there a tool that might work?
>
> TIA
>
>
>
>
>
>
>
>
>
> Robert Monical
> [EMAIL PROTECTED] (mailing list stuff)
> [EMAIL PROTECTED] (everything else)
> www.restek.com
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to