Sending email to yahoo and hotmail users?

I am using php and mysql.

Every time a user logs in to my website, I use php mail () to send one email for authentication.

I recently found out that many Yahoo and Hotmail users have not activated their accounts. Say, out of 1000 users, only 200 are activated.

I'm curious and trying to sign up with my Hotmail account. To my surprise, I did not receive the activation address.

Is my domain blocked from sending email? How to solve this problem? I tested my email account (my company and gmail), it works fine. I think that only Yahoo and Hotmail give me problems!

+3
source share
3 answers

Father, Google is your friend. In short, there is no easy answer to your question. Email delivery is not very trivial, especially since it is completely independent of your programming.

99% is your host error. If you use VPSing or on a shared hosting, you can forget about it, since you inherit the reputation of another 300 people using the same server.

If you have a server, check your IP reputation and then indicate that you need 2-3 months of flawless email to start receiving through.

5K, , ReturnPath - CampaignMonitor MailChimp ESP .

DEBUG: root/shell, :

  • "dig mx yahoo.com"
  • telnet (IP/) 25
  • SMTP
  • , Yahoo.

P.S. , ! , SMTP-, . , SMTP- Yahoo: , , .

P.P.S. DNS, SPF, DKIM MTA. , .

P.P.P.S. http://www.senderbase.org/, IP-.

.

+4

, Google gmail .

Google. , - .

Google.

$user=$from="sender@yourdmain.com"
$to="receiver@email.com"
$passwd="sender@yourdmain.com password"

require_once 'Mail.php';

$params = array(
'host'=> 'tls://smtp.gmail.com','port'=> 465,'auth'=> true,'debug'  => false,
'username' => $user,
'password' => $passwd
);

$smtp = Mail::factory('smtp', $params);
$smtp->send($to, array('From'=>$from,'To'=>$to), "Hello World!");

, .

+1

All about fighting spam ... You probably need to set up sender policy framework entries ... Hotmail uses SenderID

http://postmaster.msn.com/Guidelines.aspx
http://www.microsoft.com/mscorp/safety/technologies/senderid/default.mspx
http://www.openspf.org/

Good luck

0
source

Source: https://habr.com/ru/post/1723734/


All Articles