It seems that it is using the web server (nobody) as the sender and when it returns @<myserver>.com is appended to it. Most frustrating. Here is the code that I am using:+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Date: Wed, 20 Feb 2002 21:58:58 -0800 From: Mail Delivery Subsystem <MAILER-DAEMON@freshnews.com> To: nobody@freshnews.com Subject: Returned mail: see transcript for details Parts/Attachments: 1 Shown 9 lines Text 2 Shown 301 bytes Message, "Delivery Status" 3 Shown 19 KB Message, "FreshNews.com eNewsletter" 3.1 Shown 422 lines Text ---------------------------------------- The original message was received at Wed, 20 Feb 2002 21:58:58 -0800 from nobody@localhost ----- The following addresses had permanent fatal errors ----- sdfjlk@sdljfdlskfjlsdkj.com (reason: 550 Host unknown) ----- Transcript of session follows ----- 550 5.1.2 sdfjlk@sdljfdlskfjlsdkj.com... Host unknown (Name server: sd +ljfdlskfjlsdkj.com: host not found) [ Part 2: "Delivery Status" ] Reporting-MTA: dns; freshnews.com Arrival-Date: Wed, 20 Feb 2002 21:58:58 -0800 Final-Recipient: RFC822; sdfjlk@sdljfdlskfjlsdkj.com Action: failed Status: 5.1.2 Remote-MTA: DNS; sdljfdlskfjlsdkj.com Diagnostic-Code: SMTP; 550 Host unknown Last-Attempt-Date: Wed, 20 Feb 2002 21:58:58 -0800 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Thanks for your help! Jon St. John+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ $form_address = "newsletter\@freshnews.com"; $to_address = "whatever\@whateadsflkj.com"; $subject = "test"; $mailer = Mail::Mailer->new("sendmail"); $mailer->open({ From => $from_address, To => $to_address, Subject => $subject }) or die "Can't open: $!\n"; print $mailer $body; $mailer->close(); +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
In reply to Mail::Mailer Question by jonstjohn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |