|
Posted by Jerry Stuckle on 11/24/07 20:04
Jesse Burns aka jburns131 wrote:
> Here's my code:
>
> $today = getdate();
>
> $to = someone@somewhere.com;
>
> $subject = "New Application: ".$userdata["username"]." -
> ".$today['mon']."/".$today['mday']."/".$today['year'];
>
> $message_header = "New Application: ".$userdata["username"];
>
>
> $message = $message_header."\n
>
> Hello, is this working?";
>
>
> mail($to, $subject, $message);
>
> It's not located in a loop, so I don't understand why it would send 2 emails
> to the reciever?
>
> Any idea's?
>
>
>
If it's sending 2 emails, it's because:
a) You are calling the mail() function twice
b) Your To: header specifies two addresses, or
c) Your MTA is configured to copy someone automatically.
The most probably reason is you are calling mail() twice.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|