简体   繁体   中英

Mail sent by mail function marked as spam

I'm using the mail($email_to, $email_subject, $email_message, $headers) function to send emails from my website to a certain email but it keeps going into the spam folder.

Is there any way to fix that?how can I make my message reliable so it won't concidered as spam?since it's not!

There are too many variables to fully eliminate this. The problem that you face is that today's email filters are very efficient at their job. One of the shortcomings of course is that sometimes they filter out email which is not spam. That having been said, it's quite subjective - you might think that the email your site is sending out to someone is critical, but I might not. I'd probably consider it spam, depending upon its contents.

It depends upon the content of your email (text vs HTML, sensitive words like "unsubscribe"), the server upon which the site is hosted, and the destination of the mail. Unfortunately, there's little you can do in terms of guaranteeing delivery to their inbox (rather than spam folder), which is why most sites add a caveat these days, warning users to check their spam folders.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM