Error while sending the email ( Net :: ReadTimeout )
Added by issam OMAR over 9 years ago
Hi everyone, I'm facing a problem while sending an email using smtp, i have this error whene i'm trying to send a test email "Error while sending the email ( Net :: ReadTimeout ) ", in my file config/configuration.yml i have the following config:
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: "mail.domain.com"
port: '465'
domain: "domain.com"
my config :
redmine 2.6.1
ruby 2.0.0p598
rails 3.2.21
thanks in advance.
Replies (9)
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by Leonel Iturralde over 9 years ago
Hi,
is your smtp server using tls? if yes try adding tls: true
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by issam OMAR over 9 years ago
Hi,thanks for your response.
Yes i'm using ssl/tls settings in my smtp server;
i did this , but doesn't work.
any other ideas.
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by Leonel Iturralde over 9 years ago
did you already check the wiki page EmailConfiguration ?
If that doesn't work, try checking smtp server logs if you have access to them.
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by issam OMAR over 9 years ago
Hi, Yes i have checked the wiki page, and did all the tricks,but in vain.
but still, Not working.
I don't have access to smtp server logs.
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by issam OMAR over 9 years ago
i found this :
github.com/sj26/mailcatcher/issues/182
github.com/sj26/mailcatcher/issues/191
but no result.
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by Leonel Iturralde over 9 years ago
issam OMAR wrote:
i found this :
github.com/sj26/mailcatcher/issues/182
github.com/sj26/mailcatcher/issues/191but no result.
you tried using mailcatcher to test redmine ?
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by addseo1119 addseo1119 over 9 years ago
No solution?
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by issam OMAR over 9 years ago
I did this configuration :
Error: "Timeout:Error" due to SSL SMTP server connection add an ssl option to the configuration.yml #17239 default: # Outgoing emails configuration (see examples above) email_delivery: delivery_method: :smtp smtp_settings: address: smtp.domain.com port: 465 ssl: true enable_starttls_auto: true domain: domain.com authentication: :login user_name: redmine@domain.com password: xxxx
and i have a new error : "Erreur lors de l'envoi de l'email (end of file reached)"
RE: Error while sending the email ( Net :: ReadTimeout ) - Added by issam OMAR over 9 years ago
Hi, i fixed my problem: my server requires authentication, so my final configuration was :
default: # Outgoing emails configuration (see examples above) email_delivery: delivery_method: :smtp smtp_settings: address: "smtp.domain.com" port: "465" ssl: true enable_starttls_auto: true domain: "domain.com" authentication: :login user_name: "redmine@domain.com" password: "xxxx"
thanks all for help.