in reply to Net::SMTP - To: and From: not appearing in headers?
EDIT: Here's what I use:
EDIT: atcroft is right that header lines should be separated by CRLF instead of just \n (does it matter if it's \r\n or \n\r?) That changes my code to the above. Note the Return-Path btw - you don't want any rejected emails to get sent to a black hole instead of your primary email.$smtp->datasend("From: $from\n\r" . "Return-Path: $from\n\r" . "Reply-To: $from\n\r" . "To: $to\n\r" . "Subject: $subject\n\r\n\r" . $message);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SMTP - To: and From: not appearing in headers?
by nobull (Friar) on May 30, 2005 at 14:28 UTC | |
|
Re^2: Net::SMTP - To: and From: not appearing in headers?
by ghenry (Vicar) on May 30, 2005 at 09:21 UTC | |
by tchatzi (Acolyte) on May 30, 2005 at 09:46 UTC | |
|
Re^2: Net::SMTP - To: and From: not appearing in headers?
by ghenry (Vicar) on May 30, 2005 at 09:42 UTC | |
by atcroft (Abbot) on May 30, 2005 at 10:03 UTC | |
by ghenry (Vicar) on May 30, 2005 at 10:05 UTC | |
by atcroft (Abbot) on May 30, 2005 at 10:16 UTC | |
by tirwhan (Abbot) on May 30, 2005 at 13:01 UTC |