我正在使用Mailgun進入我的項目以發送電子郵件。我想在發送電子郵件時設置reply-to
電子郵件,但Mailgun文檔(https://documentation.mailgun.com/user_manual.html#sending-in-test-mode)上沒有可用的信息。如何在mailgun中設置回覆電子郵件
我正在使用Elixir使用Mailgun發送電子郵件。
我正在使用Mailgun進入我的項目以發送電子郵件。我想在發送電子郵件時設置reply-to
電子郵件,但Mailgun文檔(https://documentation.mailgun.com/user_manual.html#sending-in-test-mode)上沒有可用的信息。如何在mailgun中設置回覆電子郵件
我正在使用Elixir使用Mailgun發送電子郵件。
一個解決方案是使用thinkbot的Bamboo Library。這使得在elixir/phoenix中發送郵件真的很容易,甚至可以讓你設置回覆。
例如,在「新」的郵件管道你想補充一點轉變:
|> put_header(email, "Reply-To", "[email protected]")
,並且將頭添加到電子郵件。
值得一提的是'Bamboo'自帶['Bamboo.MailgunAdapter'](https://github.com/thoughtbot/bamboo#adapters)。 – mudasobwa
向我們展示您用來發送電子郵件的代碼。 – mudasobwa