PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, July 7, 2022

[FIXED] How to send email with php without the mail landing automaticly in the trash box

 July 07, 2022     email, php, phpmailer, recycle-bin     No comments   

Issue

Im using PHP's mail() function to send some emails. But all my mails land automaticly in the trash box. Is there a way of preventing this? If so, where should i read to learn more about it.

Would you recommend me using PHPmailer?

Best of regards, Alexander


Solution

I suppose you mean thrash box at the receiver's end. So basically the receiving email server is regarding it as spam. This can happen if:

1) The IP you are sending from is already blacklisted for spamming (happens often in shared hosting)

2) The IP and domain are relatively new and unknown.

(Note that many times, newsletters from well established sites also end up in spam).

If its your dedicated IP, then setting RDNS for the IP, to match the domain name will very likely solve the issue. Another usual practice is to alert the receiver (if she is subscribing on your website) to check their thrash/spam folder and whitelist your email address in their mail account.

regards,

JP



Answered By - JP19
Answer Checked By - Senaida (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing