无法使用 amazon ses 将电子邮件发送到其他域
Unable to send emails to other domain using amazon ses
如何通过亚马逊简单的电子邮件服务发送邮件。
我已经为我的域设置了我的 amazon simple email services 帐户并验证了它,但我只能将电子邮件发送到与我的域相关的电子邮件 ID,例如 用户名@mydomain.com。我无法向 username@gmail.com、username@yahoo.com 等其他域发送电子邮件。请告知如果我必须做一些与我的亚马逊网络服务账户相关的事情。
$config = Array(
'protocol' => 'mail',
'protocol' => 'smtp',
'smtp_host' => email-smtp.us-east-1.amazonaws.com,
'smtp_port' => 465,
'smtp_user' => ##############,
'smtp_pass' => ###########################,
'mailtype' => 'html',
'charset' => 'iso-8859-1'
);
$this->load->library('email');
$this->email->initialize($config);
$this->email->set_newline("\r\n");
$this->email->from(user@mydomain.com, 'User');
$this->email->to($to);
$this->email->subject($subject);
$this->email->message($message);
完成设置和测试后,您需要request to be removed from Sandbox Mode and be granted production access。
To help protect our customers from fraud and abuse and to help you establish your trustworthiness to ISPs and email recipients, we do not immediately grant unlimited Amazon SES usage to new users. New users are initially placed in the Amazon SES sandbox.
在沙盒模式的限制中:
You can only send mail to the Amazon SES mailbox simulator and to verified email addresses and domains.
申请生产访问权限有两种方法,一种是打开支持案例,另一种是提交申请表,这两种方法都在 http://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html 中进行了讨论。
如何通过亚马逊简单的电子邮件服务发送邮件。
我已经为我的域设置了我的 amazon simple email services 帐户并验证了它,但我只能将电子邮件发送到与我的域相关的电子邮件 ID,例如 用户名@mydomain.com。我无法向 username@gmail.com、username@yahoo.com 等其他域发送电子邮件。请告知如果我必须做一些与我的亚马逊网络服务账户相关的事情。
$config = Array(
'protocol' => 'mail',
'protocol' => 'smtp',
'smtp_host' => email-smtp.us-east-1.amazonaws.com,
'smtp_port' => 465,
'smtp_user' => ##############,
'smtp_pass' => ###########################,
'mailtype' => 'html',
'charset' => 'iso-8859-1'
);
$this->load->library('email');
$this->email->initialize($config);
$this->email->set_newline("\r\n");
$this->email->from(user@mydomain.com, 'User');
$this->email->to($to);
$this->email->subject($subject);
$this->email->message($message);
完成设置和测试后,您需要request to be removed from Sandbox Mode and be granted production access。
To help protect our customers from fraud and abuse and to help you establish your trustworthiness to ISPs and email recipients, we do not immediately grant unlimited Amazon SES usage to new users. New users are initially placed in the Amazon SES sandbox.
在沙盒模式的限制中:
You can only send mail to the Amazon SES mailbox simulator and to verified email addresses and domains.
申请生产访问权限有两种方法,一种是打开支持案例,另一种是提交申请表,这两种方法都在 http://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html 中进行了讨论。