【问题标题】:Possible to set reply-to address different than from address in grails mail plugin?可以设置与 grails 邮件插件中的地址不同的回复地址吗?
【发布时间】:2012-07-22 21:09:44
【问题描述】:

我正在使用 Grails 邮件插件通过 Amazon SES 发送电子邮件。 Amazon SES 强制验证“发件人”地址,这意味着域在我的控制之下,这很好,但我发送的大部分邮件都是代表系统中希望任何回复直接发送给他们的客户。鉴于此,我想将回复设置与发件人不同,这在 Grails 邮件插件中是否可行?

所以电子邮件最终会是

From: noreply@domainThatIControl.com
Reply-To:  customer@customersDomain.com
Subject: ...
Body: ...

【问题讨论】:

    标签: email amazon-web-services grails amazon-ses


    【解决方案1】:

    是的,只需使用replyTo

    sendMail {
      to 'someone@somewhere.com'
      replyTo 'customer@customersDomain.com'
      subject "some mail"
      from 'noreply@domainThatIControl.com'
      body "some body"
    }
    

    【讨论】:

    • 工作完美,谢谢,不知道为什么文档中没有!
    猜你喜欢
    • 2020-12-19
    • 2023-04-05
    • 1970-01-01
    • 2020-06-20
    • 2012-06-26
    • 2015-05-20
    • 1970-01-01
    • 2020-11-27
    • 1970-01-01
    相关资源
    最近更新 更多