[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] PHP/sending mail from address



On Friday, Sep 19, 2003, at 04:57 US/Eastern, oxfordmusic.net wrote:
cheers for that. i should have been more specific in my original email.
unfortunately, this doesn't set the reply-to address to $email as i found
out. you can't set the Reply-to address in php using Sendmail AFAIK (cf
http://www-tcsn.experts-exchange.com/Web/Web_Languages/PHP/ PHP_Installation/Q_20676174.html).

Really?

Here's what I'm using:

$mailing = mail($toaddress, $subject, $mailcontent, "From: $fromaddress\nReply-To: $fromaddress");

Works perfectly well for me.

From <http://www.php.net/manual/en/function.mail.php>:

If a fourth string argument is passed, this string is inserted at the end of the header. This is typically used to add extra headers. Multiple extra headers are separated with a carriage return and newline.

Note: You must use \r\n to separate headers, although some Unix mail transfer agents may work with just a single newline (\n).

pjm