我使用的是rails 3.2.11,並使用藍色主機作爲我發送電子郵件的電子郵件服務器。帶藍色主機的Rail Actionmailer配置
下面是development.rb
config.action_mailer.smtp_settings = {
:address => "box75112.bluehost.com",
:port => "465",
:domain => "bluehost.com",
:enable_starttls_auto => true,
:authentication => :login,
:user_name => "[email protected]",
:password => "93utitrpppJvZ,[#4rl4"
}
我的配置信息,這些是我的藍主機信息
Mail Server Username: support+buddy.io
Incoming Mail Server: mail.buddy.io
Incoming Mail Server: (SSL) box75112.bluehost.com
Outgoing Mail Server: mail.buddy.io (server requires authentication) port 26
Outgoing Mail Server: (SSL) box75112.bluehost.com (server requires authentication) port 465
Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS)
Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)
,但電子郵件沒有發送出去,也沒有錯誤
任何人都可以請幫忙嗎?
config.action_mailer.smtp_settings = {
address: => "mail.buddy.io",
port: => 26,
enable_starttls_auto: => false,
authentication: => "plain",
user_name: => "support+buddy.io",
password: => "password"
}
注意user_name
是不一樣的電子郵件地址:
感謝