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

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



>
> 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