我有一个使用ubuntu 10.04的vps。我正在尝试安装Rails 3应用程序
如果我尝试从终端测试sendmail命令,它会起作用。
在我的应用程序中,对于邮件,我已经插入了application.rb文件:
config.action_mailer.delivery_method = :sendmail
config.action_mailer.sendmail_settings = {
:location => '/usr/sbin/sendmail',
:arguments => '-i -t'
}
但是,如果我尝试通过rails发送电子邮件,则会收到此错误:
OpenSSL::SSL::SSLError: hostname was not match with the server certificate
from /opt/ruby/lib/ruby/1.8/openssl/ssl-internal.rb:123:in `post_connection_check'
我能怎么做?
谢谢
最佳答案
关于ruby-on-rails - sendmail:OpenSSL::SSL::SSLError:主机名不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6440038/