mail() sending twice
I have the mail() function working (hooray!) but it seems to send twice.
The first time there are the fields but with nothing in them and then in the second the fields are properly populated.
Heres the code:
/* emailing info, first set variables*/
/* The body text */
$content= 'Name: '.$fname.' '.$lname."\n"
/* send the info */
mail ($toaddress, $subject, $content, $fromaddress);
The code you posted should not be causing it to do that. It is perhaps a problem somewhere else in your code, or a problem on your servers end...
The problem may be the way you send the form.
mail function... http://www.php.net/manual/en/function.mail.php
Your $fromaddress does not appear to be a valid header value...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)