title: this.smtpServersettings is sending mail to undelivered options instead of gmail
body: <p>I want to send a email to real gmail ID's to the end users. So I used <strong>smtp.gmail.com</strong> as mail server with my own email user name &amp; password. But if I use <strong>this.smtpServersettings</strong> in my application.cfc it's not sending a email. All the mail's are went to undelivered options. My sample code,
  <strong>App.cfc :</strong></p>
  
  <pre><code>&lt;cfset this.name='mailfn8'&gt;
  &lt;cfset this.smtpServersettings={server:"smtp.gmail.com",username:"mygmail@gmail.com",password:"mypassword"}&gt;
  </code></pre>
  
  <p><strong>My.cfm :</strong> </p>
  
  <pre><code>&lt;cfmail from='sender@gmail.com' to='receiver@gmail.com' subject='test' type='html' port="587" usetls="true"&gt;
      I'm seding a email by using this.smtpServersettings options.
  &lt;/cfmail&gt;
  </code></pre>
  
  <p>But the credentials are working great in below scenario,</p>
  
  <pre><code>-- If I set my details in application scope and use that values in cfmail tag
  -- Directly set it in coldfusion mail server setting
  </code></pre>
  
  <p>For example,
  <strong>App.cfc :</strong></p>
  
  <pre><code>&lt;cfset this.name='mailfn8'&gt;
  &lt;cffunction name='onApplicationStart'&gt;
  
      &lt;cfset application.server='smtp.gmail.com'&gt;
      &lt;cfset application.username='mygmail@gmail.com'&gt;
      &lt;cfset application.password='mypassword'&gt;
  
  &lt;/cffunction&gt;
  </code></pre>
  
  <p><strong>My.cfm :</strong></p>
  
  <pre><code>&lt;cfmail from='sender@gmail.com' to='receiver@gmail.com' server= '#application.server#' username='#application.userName#' password='#application.password#' subject='test' type='html' port="587" usetls="true"&gt;
      I'm seding a email by using application scope.
  &lt;/cfmail&gt;
  </code></pre>
  
  <p>The above working fine. <strong>So why this.smtpServersettings is send email to undelivered option instead of gmail. ?</strong> .Do I need to enable any other setting if I use this.smtpServerSetting ?  Please help me on this.  Correct me if I'm understood anything wrong.  Thank you !.</p>