title: Ruby on Rails: Multiple Smtp port in one action mailer smtp configuration setting
body: <p>Is there any way to use multiple <code>smtp port</code> in one <code>smtp</code> configuration like</p>
  
  <pre><code>config.action_mailer.smtp_settings = { 
  :user_name            =&gt; "rdas",
  :password             =&gt; "guru",
  :domain               =&gt; "stainly.com",
  :address              =&gt; "smtp.sendgrid.net",
  :port                 =&gt; 587 &amp;&amp; 1025,
  :authentication       =&gt; :plain,
  :enable_starttls_auto =&gt; true
  }
  </code></pre>