gpc / grails-mail

The Grails Mail Plugin
http://grails.org/plugin/mail
Apache License 2.0
45 stars 85 forks source link

Add replyTo in documentation #22

Closed gauravchauhan closed 2 years ago

gauravchauhan commented 10 years ago

In one of our current projects we made switch from Sendgrid to Amazon SES for sending emails. SES doesn't allows sending emails from an unverified email address but our system used to send it that way.

After some search i got to know that mail plugin also supports replyTo field which will serve the purpose for my use case and i hope others will find it useful to.

e.g. : If your SMTP host doesn't allows sending emails from unverified email address then you can make use of replyTo field :

mailService.sendMail { to "fred@g2one.com","ginger@g2one.com" from "noreply@g2one.com" // all emails will be going out from this email replyTo "joe@g2one.com" // replies will be sent to this email subject "Hello from Joe" body 'this is some text' }

JIRA issue : https://jira.grails.org/browse/GPMAIL-87