Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Submitting a form – always a hassle for me Re: Submitting a form – always a hassle for me

#74009
rkacenski
Member

Yes, it would most likely be a server issue. Most hosting companies stager and limit the php mail() function to prevent server overload and crashes. There might not be a way to fix the delay but your syntax could use some improvement. Try something like this instead:


//First part of the email header, is the from address
$headers = "From: $email" . "rn";
//Second part to include HTML and make more legit to email services
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";

$emailbody = "Body Content Here, and you can use ";

mail("[email protected]", "Flock Subscription", $emailbody, $headers);

Notice you were putting the “From: $email ” in the body part and left the headers null. The rest of the code should be pretty self-explanatory let me know if this helped.