About This Ticket

Form Mail not functionin correctly

by holidaynerja / January 25, 2016, 5:05 pm

Hi, I have a contact form on the following page

http://www.holidaynerja.co.uk/mobile/property-details.html

For some reason it is not sending the data. If I disable vendor.js /or main.js … it works ok but then I lose other functions on the webpage.

Could you see what might be causing this?

Many thanks

 

Staff

Hi,

 

I just tested the contact form and it seems to be working, as the page displayed the message "We will respond as soon as possible." below the contact form.

The probable reason that you are not receiving the mail is that the recipient email address is still unchanged in the PHP files which are located in the PHP folder of the project.

The Documentation contains the instructions as to where you need to change the recipient email address to recieve the data. Please go through the steps mentioned in the document, and hopefully you will be able to understand and implement the changes.

Let us know if you were able to fix this issue.

 

Thanks and regards,

0effort Team

Hi, I have set up the sent to email address in the php file and now I receive the data. There is still a problem because the email I recieve is from my server and therefore it is not possible to reply to the email, can you advise?

I look forward to hearing from you.

Staff

Hello,

Please find the old code in your php file and replace with new code.

Example code below

Old code

// Always set content-type when sending HTML email

$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

 

New code

// Always set content-type when sending HTML email
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers.= 'Content-type:text/html;charset=UTF-8' . "\r\n";
$headers.= 'From: '. $name .  "\r\n" .
    'Reply-To: ' . $email . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

If you like our theme and support, please rate us in Themeforest in the download section.

Thanks and regards,
​0effortteam

Hi, That works fine thank you very much :)

Staff

Great!

If you like our theme and support, please rate us in Themeforest in the download section.

Thanks and regards,
​0effortteam