I have seen a lot of StackOverFlow answer and posting this question again. Raising problem while sending mail sometime it is working fine if i restart the server i am facing the problem again.
SMTP Settings:
config.action_mailer.smtp_settings = {
address: 'smtp.1and1.com',
port: 25,
domain: 'leotechnosoft.net',
user_name: 'santoshk@leotechnosoft.net',
password: 'password',
openssl_verify_mode: 'none',
authentication: 'plain',
enable_starttls_auto: true }
Error
OpenSSL::SSL::SSLError in UsersController#create
SSL_connect returned=1 errno=0 state=unknown state: unknown protocol
I tired with changing the settings ssl true/false, tls true/false, open_ssl_verify_mode:none enable_starttls_auto: true.
Please Explain me what is root cause for this problem and how can i resolve.
Ruby 1.9.3 (Actually the problem has raised after upgrading to ruby 2.1.2 and then its not working in 1.9.3 also)
Ubuntu 12.04
Thanks