May 20, 201412 yr First of all i don't know if i'm posting on the right section so please excuse me if the thread is wrong Hi there,i'm using the starblaze template and i have a problem with the contact form i don't recieve the mail,i fill all the boxes clicking the star but no mail... I tried to fix it,searching on google how to fix it checking all the php things but i don't have any clue,so please help me its an amazing template and i really want to use it. Let me post the entire template because maybe its not from the php file. If you resolve the problem please tell me where should i put my email. starBlazeSiteTemplate.zip Edited May 20, 201412 yr by CoNfuZ
May 24, 201412 yr In the php folder you have the 'process.php' file, this is the one that is doing the work. <?php #recepient $recipient = 'test@test.com; #subject $subject = $_POST['subject']; #headers $headers = "From: Test <test@test.com>\r\n"; #message $message = "Name : {$_POST['name']}\n"; $message .= "Email : {$_POST['email']}\n"; $message .= "Subject : {$_POST['subject']}\n"; $message .= "Message : {$_POST['message']}\n"; if( mail($recipient, $subject, $message, $headers) ) echo "Mail Sent"; else echo "Mail Could Not Be Send"; As you can see the last line is an if statement, you should be getting either "Mails Sent" or "Mail Could Not Be Send" after you click the submit button. If you get "Mail Sent" then the problem is with your recipient email address - check the spelling etc, If you get "Mail Could Not Be Send" then the problem is that you have not configured your servers mail sending facilities to be compatible with mail() and may need to use sendmail or smpt. **EDIT** I just noticed that $recipient is missing the closing ' and thus the rest of the code is not being processed. Check you have corrected this before trying anything else. Edited May 24, 201412 yr by Weedy101
Create an account or sign in to comment