Re: Update to mail() function help
| From: | Jani Taskinen | Date: | Mon, 26 May 2003 00:28:15 +0000 |
| Subject: | Re: Update to mail() function help | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2004@lists.php.net to get a copy of this message | ||
It might work better if you did that 'diff' with files in correct order. :)
--Jani
On Sun, 25 May 2003, Patrick Gibson wrote:
>That did the trick. Thanks for your help.
>
>Attached is a diff if anyone cares to include a header in all emails sent
>using the mail() function that contains the $_SERVER['SERVER_NAME']. Useful
>for hosting companies...
>
>Patrick
>
>On 5/25/03 13:43, nicos@php.net wrote:
>
>> Okay after few searches, yes I'm a noob also, you need :
>>
>> zval **server_name; and not zval *server_name;
>>
>> You need to use:
>>
>> convert_to_string_ex(server_name);
>>
>> fprintf(sendmail, "X-Site-Origin: %s\n", Z_STRVAL_PP(server_name));
>>
>> Try this please.
>
>
>---
> patrick gibson
> patrick @ patrickg.com
> http://patrickgibson.com/
>
>
--
https://www.paypal.com/affil/pal=sniper%40php.net