0
我发现这个职位Using Amazon SES with Rails ActionMailer,并随后在https://github.com/abronte/Amazon-SES-Mailer发现的例子,但发送邮件SSL错误通过亚马逊SES-宝石邮件发送电子邮件时
"SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"
配置/环境/发展时,我得到这个错误.RB:
config.action_mailer.delivery_method = AmazonSes::Mailer.new(
:secret_key => 'AKIAJ*******',
:access_key => 'Ahs08*********'
)
发送消息:
mailer = ActionMailer::Base.delivery_method = AmazonSes::Mailer.new(
:secret_key => 'AKI*******',
:access_key => 'Ah***********'
)
mailer.deliver(UserMailer.test(@this_user.email).encoded)
为什么我在SS L错误在这里?我尝试使用个人Gmail帐户使用smtp的另一个配置,并发送电子邮件就好了。这是SES的问题吗?我该如何解决?
发送它时你在HTTPS?同样的错误在这里http://stackoverflow.com/questions/4528101/ssl-connect-returned-1-errno-0-state-sslv3-read-server-certificate-b-certificat – 2012-07-17 06:14:57
我在我的本地主机上。 – Diffy 2012-07-17 06:15:44