10-01-2021, 09:02 PM
|
|
Confirmed User
Industry Role:
Join Date: Oct 2018
Location: New Orleans, Louisiana. / Newcastle, England.
Posts: 1,126
|
Quote:
Originally Posted by ZTT
Have you have tested your email form so you know it definitely works? Some servers may block it, and some email providers may not accept such email. If it works - that is you submit a form and receive an email - there should be no issue with using the mail function when people submit data.
BTW you don't need all that header shit on an email. You need To, Subject, Message, From. For example this is probably enough to test with (obviously with real email addresses), after or before your "records added successfully" line:
mail("me@myhouse","Hello","How are you","From: you@yourhouse");
Edit: since newlines may be necessary, even with one line of headers (from): mail("me@myhouse","Hello","How are you","From: you@yourhouse\r\n");
|
Yes, the form works on several other sites that I have it on, which was why I'm choosing to use this specific form
Thank you.
|
|
|