|
Posted by Rik on 08/02/07 03:59
On Thu, 02 Aug 2007 05:18:54 +0200, Jerry Stuckle =
<jstucklex@attglobal.net> wrote:
> crazycooter@gmail.com wrote:
>> I followed through the steps (pretty cool hehe) and I got a single
>> email as a result.
>> CrazyCooter
>>
>
> It really looks like you're calling mail() five times. Try sometning =
=
> like this:
>
> function send_email($email_from, $email_to, $subject, $msg,
> $show_result =3D null)
> {
> static count =3D 1;
$count
> ...
> $headers =3D "From: $from \r\n";
> $headers .=3D "Reply-To: $from \r\n";
> ...
> $messagebody =3D "Count: " . $count++ . "\n\n" . $messagebody;
> $result =3D mail($sendto, $subject, $messagebody, $headers);
> ...
> }
>
> This will give an incrementing count at the start of the message body,=
=
> starting at 1.
Indeed. Possibly use debug_backtrace() to check where it happens, but mo=
st =
likely it's an undesired loop and linenumbers will be the same.
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|