Answer the question
In order to leave comments, you need to log in
Emails from the site: in spam?
Good day, habr.
For the hundredth time, affecting letters from the site and getting into spam. habrahabr.ru/qa/14954/ - read. and links below too. However, there is a question:
The site has a form
where the sender of the message enters his email, name and message.
the message is sent to the administrator. administrator's mail - on Google.
In the From field, enter the email that the sender specified. Let's say [email protected]
Accordingly, all letters end up in the spam folder. Which is not very convenient.
I see one solution to the problem: make sure that all emails come from [email protected] Then they won't go to spam. But answering them will not be very convenient.
How to be in this situation? So that all the same, letters were sent with the email substituted in the “From:” field, which the person indicated when filling out the form on the site and they did not fall into spam.
Answer the question
In order to leave comments, you need to log in
> So that all the same letters are sent with the email substituted in the “From:” field, which the person indicated when filling out the form on the site and they did not fall into spam.
It won't work at all. If you want to understand, read DKIM, SPF. In short, the bottom line is that letters from a certain domain can be sent ONLY from a small number of servers, everything else is considered spam.
Set up filtering "if the sender's address is such and such, do not send to spam"?
As an option, store all requests in the database, and write in From not [email protected], but [email protected], where 123 is the request ID, and set up a script that will process letters from the no mailbox -reply and forward to where you want.
And the administrator's letters will not fall into spam, and it will be convenient to answer.
But in general, the solution with reply-to seems to me ideologically more correct.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question