Email Confirmation with Email Confirmation

I use PHPMailer to send emails to new users on my social network. But I found out that most of them got into the list of spam users. (Hotmail and Yahoo). How to avoid this?

This is my script

$mail=new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = mSMTPAuth(); $mail->SMTPSecure = mSMTPSecure(); $mail->Host = mHost(); $mail->Port = mPort(); $mail->Username = mUsername(); $mail->Password = mPassword(); $mail->From = mFrom(); $mail->FromName = "SiteName"; $mail->Subject = "SiteName New Account Activation"; $mail->IsHTML(true); $mail->WordWrap = 50; $mail->Body = "<h2>Welcome to " .$sitename. " " .$username. "! </h2><br><br>"; $mail->Body .= "Please click on the link below to verify your email address:<br><br>"; $mail->Body .= "<a href='".$base. "verify.php?a=" .$gen_key."'>".$base. "verify.php?a=" .$gen_key."</a>"; $mail->Body .= "<br><br>Regards<br>"; $mail->AltBody = "Welcome to " .$sitename. " " .$username. "!\n\nTo verify your email address, please click on the link below:\n\n".$base. "verify.php?a=" .$gen_key; $mail->AddAddress($email); $mail->Send(); $mail->ClearAddresses(); 
+7
php phpmailer spam
source share
6 answers

To maximize the chances of your email, you need to check three things:

  • Verify that the computer sending the email has a reverse PTR record
  • Configure Domain Identity Mail (DKIM) in DNS and Code
  • Configure SenderID Record in DNS

more details:

http://www.codinghorror.com/blog/2010/04/so-youd-like-to-send-some-email-through-code.html

+4
source share

There you cannot do much. Most of these mail providers have lists of common IP addresses, host names and other data that are often marked as spam, and if your emails meet the criteria, they are automatically filtered. All you really can do is tell your visitors to add their email address to their permission list before registering so that the email goes to their inbox.

Honestly, do not worry about this. If they see that your emails are regularly flagged as “not spam,” they will eventually add an exception to it. Just tell users to check the spam folder if they don’t see the email, like any other site. Usually, if they mark this as “not spam” in this folder, it automatically adds an exception for this address, so any other letters you send will be sent to their Inbox.

+3
source share

Do you have a reverse DNS record for the server sending confirmation emails?

If not, it could be an rDNS problem . Some sites are more likely to mark the message as SPAM if the IP and the name of the sending host do not match according to rDNS.

Otherwise, you can try sending confirmation emails to your own accounts on major email sites such as yahoo, hotmail and g-mail, and then configure the text until it goes through spam filters.

+3
source share

Hm, there is SOMETHING you can do: * Drop the HTML. This is like spam, especially with low text * Write more text, please.

Short HTML emails can go up significantly in the spam list.

0
source share

I found that any variation of the word “confirm” in the header ends in my spam bucket. I found other words that also do this: “buy,” “rush,” “order,” “deal,” and “inevitable.”

This may not be true in all emails, but it happens to me. Maybe because these words appear in most letters, which I mark as span. It may also be that the local sysop made a filter and distributed it to all of us.

0
source share

You can try sendGrid apis , which will help, they charge, but I think it is worthy. They support most popular languages: Nodejs, PHP, Java, ...

0
source share

All Articles