Re: php sendmail_from

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

 



do you know if Drupal uses that too?

On Mon, Jan 9, 2012 at 10:16 PM, Fatih P <fatihpiristine@xxxxxxxxx> wrote:
> On Mon, 2012-01-09 at 13:53 -0500, alexus wrote:
>> I need to change sendmail from field, I added following to my .htaccess:
>>
>> php_value sendmail_from 'XXX@xxxxxxx'
>>
>> and tried to send out an email, but it still comes from apache@FQDN
>>
>> through phpinfo(); I see as local value my email address XXX@xxxxxxx
>>
>> --
>> http://alexus.org/
>>
>
>
>
> try this before sending mail:
>
> $sender = 'someone@xxxxxxxxxxxxx';
>
> if (ini_get("sendmail_from") == null || ini_get("sendmail_from") == "")
> {
>        ini_set("sendmail_from", $sender);
> }
>
> it is working fine for me
>



-- 
http://alexus.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux