Incorrect Contact form php


I have contact form on redlook dot in website.

If I put “$headers = “From: $email\n”;” this line in php code then I can receive inquiries from google mail id users but can’t receive inquiries from those who are using yahoo id to fill the contact form. Also In this I can reply directly to the received mail by just clicking on reply. I have attached screenshot(with-email.JPG) of this scenario how it displays.

However if I change it to “$headers = “From: $fname\n”;” then I can receive inquiries from both Google as well as yahoo mail users but I am not able to directly reply them from the received mail. I have attached screenshot(with-fname.JPG) how it appears when I click on reply.

Kindly guide me in this case.