From a Rails application containing email addresses I want to send emails. Therefore I am testing sending emails.
It does not work though I have read a lot about how to do it. I guess my .../config/initializers/mail.rb is wrong.
I have based the settings on the answers here but I do not understand them fully.
File content:
ActionMailer::Base.smtp_settings = {
address: "smtp.x.y",
port: 465,
domain: "x.y"
user_name: "me",
password: "my",
authentication: :login,
enable_starttls_auto: true
}
This is based on my settings in Thunderbird for outgoing server:
Server Name smtp.x.y
Port 465
User name me
Authentication method Normal password
Connection Security SSL/TLS
The error is reported as
Completed 500 Internal Server Error in 60254ms
Timeout::Error (Timeout::Error):
app/controllers/mail_messages_controller.rb:56:in `block in create'
app/controllers/mail_messages_controller.rb:54:in `create'
OS Ubuntu 12.04
Ruby 1.9.3
Rails 3.2.9
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Y5OXykIe6HsJ.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment