Re: Update to mail() function help
| From: | Patrick Gibson | Date: | Mon, 26 May 2003 05:06:32 +0000 |
| Subject: | Re: Update to mail() function help | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-2005@lists.php.net to get a copy of this message | ||
<blush> Whoops, that would explain the weirdness when I ran patch. :) Here's
a diff using the correct order.
Patrick
On 5/25/03 17:28, Jani Taskinen wrote:
>
> 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/
>>
>>