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: ...
Yep, just use replyTo
sendMail {
to '[email protected]'
replyTo '[email protected]'
subject "some mail"
from '[email protected]'
body "some body"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With