我尝试使用 ruby on rails 将消息发送到邮件,但它没有传递虽然代码中出现 0 错误
mail(:to => user.email, :subject => "Welcome to My site")
骗局
ActionMailer::Base.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => "gmail.com",
:user_name => "username",
:password => "password",
:authentication => "plain",
:enable_starttls_auto => true
}
RegistedMailer.sendingmail(@profolio).deliver
注意本地主机上的应用程序