php - Email goes to SPAM in yahoo -
i posted question 6 days ago regarding yahoo email issue email going spam in yahoo , url not working
some guys told me there use smtp email sending receive email in inbox. i'm using smtp still emails goes yahoo spam folder. dont know what's wrong in code. can please me,
include_once("mail.php"); $from = "from email"; $to = "to email"; $subject = "test email"; $message = "this test email using smtp"; $host = "mail.domain.com"; $username = "username"; $password = "password"; $headers = array("mime-version"=> '1.0', "content-type" => "text/html; charset=iso-8859-1", "from" => $from, "to" => $to, "reply-to" => $from, "subject" => $subject); $smtp = mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $message); if (pear::iserror($mail)){ echo($mail->getmessage()); } else { echo("email sent successfully"); } note : issue yahoo, other emails goes inbox
to see if mail server has glaring problem cause other mail servers think it's spammer, try sending message mail server check-auth@verifier.port25.com. service bunch of checks, , you'll report ton of information, such whether or not mail server's dns setup correctly, whether mail server's ip on black lists, if have problem spf records, etc.
Comments
Post a Comment