[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] PHP/sending mail from address
- Subject: Re: [cobalt-users] PHP/sending mail from address
- From: "oxfordmusic.net" <lists@xxxxxxxxxxxxxxx>
- Date: Fri Sep 19 02:04:03 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>
> I am using the following code to set the from address successfully in PHP:
>
> $EmailBody .= "subscribe list " . $email;
>
> $EmailSubject = "Subscription to Mailing List ";
>
> $EmailAddHdr = "From: " . $email;
>
> mail ("listar@xxxxxxxxxxxxxxxxx", $EmailSubject, $EmailBody,
> $EmailAddHdr);
>
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).
i suppose on option is to execute the mail sending script as a CLI php
script (either via a cron or from the script) but i wanna try and avoid
this.
andy