|
Posted by Jerry Stuckle on 08/02/07 03:18
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 = null)
{
static count = 1;
...
$headers = "From: $from \r\n";
$headers .= "Reply-To: $from \r\n";
...
$messagebody = "Count: " . $count++ . "\n\n" . $messagebody;
$result = mail($sendto, $subject, $messagebody, $headers);
...
}
This will give an incrementing count at the start of the message body,
starting at 1.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|