Re: Update to mail() function help
| From: | Derick Rethans | Date: | Sun, 25 May 2003 19:26:37 +0000 |
| Subject: | Re: Update to mail() function help | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1995@lists.php.net to get a copy of this message | ||
On Sun, 25 May 2003 nicos@php.net wrote:
> "Patrick Gibson" <php.dev@patrickg.com> a écrit dans le message news:
> BAF555C5.C868%php.dev@patrickg.com...
> > Hi Rasmus, I'm having a (likely) small problem here. I just preface this
> > problem with the fact that I do not have a lot of C experience (which is
> the
> > cause of my problem) -- most of my experiences are in Java, PHP and the
> > like.
> >
> > I have added the following into php_mail() in mail.c:
> >
> > zval *server_name;
> >
> > <snip, snip...>
> >
> > fprintf(sendmail, "To: %s\n", to);
> > fprintf(sendmail, "Subject: %s\n", subject);
>
> Hey, fprintf is not strcat. You're just overwriting sendmail with all these
> fprints. Use strcat.
What the hell are you talking about? sendmail is just a filepointer
here.
Derick
--
"my other box is your windows PC"
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
International PHP Magazine http://php-mag.net/
-------------------------------------------------------------------------