sworuptml Posted February 19, 2019 Share Posted February 19, 2019 Hello, recently I changed host of my website and when a visitor clicks "contact us" button in my website (in which one needs to enter his/ her email, name, phone , etc) and submit his/her message then I get email. Before this hosting I used to get emails from the visitor who filled the form so it was easier for me to reply but now after I changed the host I get email as "mydomain@hosting-company-domain" instead of the visitor's email. I messaged them then they told me something about SMTP authenticate using PHP, please guide me to fix this. Quote Link to comment Share on other sites More sharing options...
gw1500se Posted February 19, 2019 Share Posted February 19, 2019 What are you using to create the email in your PHP script? You should use PHPMailer. It will make SMTP authentication easier. Quote Link to comment Share on other sites More sharing options...
sworuptml Posted February 19, 2019 Author Share Posted February 19, 2019 Hi, I am using PHPMailer but I do not know how to configure the SMTP thingy which is creating problem. Quote Link to comment Share on other sites More sharing options...
gw1500se Posted February 19, 2019 Share Posted February 19, 2019 Since you didn't post any code it is hard to help. Perhaps this article will answer your question. Quote Link to comment Share on other sites More sharing options...
requinix Posted February 19, 2019 Share Posted February 19, 2019 You should not be sending emails as "From:" the user's email address. Because it will look like spam. Put their email as the Reply-To instead. Quote Link to comment Share on other sites More sharing options...
sworuptml Posted February 21, 2019 Author Share Posted February 21, 2019 On 2/20/2019 at 12:23 AM, gw1500se said: Since you didn't post any code it is hard to help. Perhaps this article will answer your question. Hi, thanks for helping but the issue is NOT fixed yet. I don't think this article has anything to do with my problem because my codes are set accordingly. The problem is that my hosting does not support it because SMTP authentication is not done, I have no idea how it can be. However, it worked perfectly with my old host and it was possible to simply reply. Quote Link to comment Share on other sites More sharing options...
gw1500se Posted February 21, 2019 Share Posted February 21, 2019 That article explains how to authenticate SMTP. You need to post the code for us to help you . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.