我正在使用Amazon SES向我的用户发送批量电子邮件。有些电子邮件被标记为垃圾邮件。我可以做些什么来减轻垃圾邮件标记?
PHP中的代码:
$ses = new AmazonSES();
$destination = array();
$destination['ToAddresses'] = $email;
$message = array();
$message['Subject.Data'] = "Domains: $contactsName have made a descision";
$message['Body.Text.Data'] = '';
$message['Body.Html.Data'] = " Hi $firstName!
</br>
</br>
$contactsName have made a descision regarding $title at $link
</br>
</br>
Sincerely,
</br>
</br>
The Domain Team";
$message['Body.Html.Charset'] = 'utf-8';
$response = $ses->send_email('info@domain.com', $destination, $message);
答案 0 :(得分:2)
围绕此问题有很多问题会影响您的垃圾邮件声誉,但有些问题很快:
<br/>
而不是</br>
。)这些是一些简单的问题。我能给你的最好的快速建议是确保用户选择加入,并鼓励他们将你添加到他们的朋友列表中。尝试从Amazon SES发送您与他们之间的每个电子邮件通信。
答案 1 :(得分:0)
我不熟悉亚马逊SES,但我会尝试这个。
有一个有趣的讨论,特别是处理通过Amazon SES发送的电子邮件并在此处标记为垃圾邮件 - AWS Forum: "Email marked as spam CLOUDMARK"
除了在那里提出的观点之外,还有一些建议:
以下是建议修订的代码(更正后的拼写和HTML标记):
<?php
$ses = new AmazonSES();
$destination = array();
$destination['ToAddresses'] = $email;
$message = array();
$message['Subject.Data'] = "Domains: $contactsName have made a decision";
$message['Subject.Charset'] = 'UTF-8';
/* NOTE: Lines are broken for readability only */
$body = "Hi $firstName!<br>".
"<br>".
"$contactsName have made a decision regarding $title at $link<br>".
"<br>".
"Sincerely,<br>".
"<br>".
"The Domain Team";
$message['Body.Text.Data'] = str_replace( '<br>' , "\n" , $body );
$message['Body.Html.Data'] = $body;
$message['Body.Html.Charset'] = 'UTF-8';
$response = $ses->send_email('info@domain.com', $destination, $message);