Home › Forums › Back End › Contact form on my website fails to send email…Please help › Reply To: Contact form on my website fails to send email…Please help
September 10, 2013 at 8:28 pm
#149682
__
Participant
PHP Code:
alert(‘Thank you for the message. We will contact you shortly.’); window.location = ‘contact.html’;
alert(‘Message failed. Please, send an email to [email protected]‘); window.location = ‘contact.html’;
This is javascript, not PHP. Javascript will not (cannot) send you an email.
Also, please use markdown (or the [Block Code]
button) to format your code as code. If you have more than a few lines to share, it would be a good idea to use a service like pastebin or make a gist on github.