title: An error occurred while sending mail (SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol)
body: <p>configuration.yml</p>
  
  <pre><code>development:
     email_delivery:
       delivery_method: :smtp
       smtp_settings:
        #tls: true
         #enable_starttls_auto: true
         openssl_verify_mode: 'none'
         address: "domain name" 
         port: 25
         authentication: :login
         domain: 'mail domail name'
         user_name: 'mail id'
         password: 'pwd'
  </code></pre>
  
  <p>this code use to for the following error occurs</p>
  
  <p>An error occurred while sending mail:</p>
  
  <p><code>SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol</code></p>
  
  <hr>
  
  <pre><code>development:
  email_delivery:
  delivery_method: :smtp
  smtp_settings:
  tls: true
  enable_starttls_auto: true
  openssl_verify_mode: 'none'
  address: "domain name" 
  port: 587
  authentication: :login
  domain: 'mail domail name'
  user_name: 'mail id'
  password: 'pwd'
  </code></pre>
  
  <p>this code use to for the following error occurs</p>
  
  <p>An error occurred while sending mail:</p>
  
  <p><code>No connection could be made because the target machine actively refused it. - connect(2)</code></p>
  
  <hr>
  
  <pre><code>development:
  email_delivery:
  delivery_method: :async_smtp
  smtp_settings:
  tls: true
  enable_starttls_auto: true
  openssl_verify_mode: 'none'
  address: "domain name" 
  port: 25
  authentication: :login
  domain: 'mail domail name'
  user_name: 'mail id'
  password: 'pwd'
  </code></pre>
  
  <h2>no error occurs but still not received mail on the user.</h2>
  
  <pre><code>development:
  email_delivery:
  delivery_method: :smtp
  smtp_settings:
  tls: true
  enable_starttls_auto: true
  openssl_verify_mode: 'none'
  address: "domain name" 
  port: 25
  authentication: :login
  domain: 'mail domail name'
  user_name: 'mail id'
  password: 'pwd'
  </code></pre>
  
  <p>this code to use redmine version 2.2.3 to use work with fine. but version 2.3.0 to use not working now.</p>