简体   繁体   English

无法使用Amazon Ses向其他域发送电子邮件

[英]Unable to send emails to other domain using amazon ses

How to send mails through amazon simple email services. 如何通过亚马逊简单电子邮件服务发送邮件。

I have set up my amazon simple email services account for my domain and verified it, but I can only send emails to email ids related to my domain like username@mydomain.com . 我已经为我的域设置了我的Amazon简单电子邮件服务帐户并进行了验证,但是我只能将电子邮件发送到与我的域相关的电子邮件ID,例如username@mydomain.com I am unable to send emails to other domains like username@gmail.com , username@yahoo.com , etc. Please Tell me if I have to do something related to my amazon web services account. 我无法将电子邮件发送到其他域,如username@gmail.comusername@yahoo.com等。请告诉我是否需要执行与我的Amazon Web服务帐户相关的操作。

$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);

After you have completed your setup and testing, you need to 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. 为了帮助保护我们的客户免受欺诈和滥用,并帮助您建立对ISP和电子邮件收件人的信任,我们不会立即向新用户授予无限的Amazon SES使用率。 New users are initially placed in the Amazon SES sandbox. 新用户最初放置在Amazon SES沙箱中。

Among the the restrictions in sandbox mode: 沙盒模式的限制包括:

You can only send mail to the Amazon SES mailbox simulator and to verified email addresses and domains. 您只能将邮件发送到Amazon SES邮箱模拟器以及已验证的电子邮件地址和域。

There are two ways to request production access, either by opening a support case, or submitting a request form, both of which are discussed at http://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html . 可以通过打开支持案例或提交请求表来请求生产访问的两种方法,这两种方法均在http://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-中进行了讨论。 access.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM