title: How to override the existing from address of SMTP configurations defined in config.groovy
body: <p>I have grails 2.0 and <a href="http://grails.org/plugin/mail/" rel="nofollow">mail plugin</a> installed, and I have configured SMTP in confi.groovy as follows</p>
  
  <pre><code>grails {
  mail {
    host = "smtp.gmail.com"
    port = 465
    username = "mymail@gmail.com  "
    password = "mypwd"
    props = ["mail.smtp.auth":"true",
             "mail.smtp.socketFactory.port":"465",
             "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory",
             "mail.smtp.socketFactory.fallback":"false"]
  }
  </code></pre>
  
  <p>}</p>
  
  <p>And in one of my controller I am doing as follows</p>
  
  <pre><code>sendMail {
    from "Vinay &lt;mymail@gmail.com&gt;"
    to "fred@g2one.com"
    subject "Hello John"
    html '&lt;b&gt;Hello&lt;/b&gt; World'
  }
  </code></pre>
  
  <p>But when i receive mail the from address "mymail". Grails is still using the username of the smtp config, How to override this So that I can have customized 'from' address </p>