Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to set reply-to address different than from address in grails mail plugin?

I'm using the Grails mail plugin to send email through Amazon SES. Amazon SES enforces the 'from' address to be verified, meaning a domain under my control, which is fine, but much of the mail I send is on behalf of customers in the system who want any reply to go directly to them. Given this, I would like to set the reply-to differently than the from, is this possible in Grails mail plugin?

So the email would end up being

From: [email protected]
Reply-To:  [email protected]
Subject: ...
Body: ...
like image 214
Peter Avatar asked Jul 22 '12 21:07

Peter


1 Answers

Yep, just use replyTo

sendMail {
  to '[email protected]'
  replyTo '[email protected]'
  subject "some mail"
  from '[email protected]'
  body "some body"
}
like image 155
Gregg Avatar answered Nov 05 '22 03:11

Gregg