jesuralem Posted January 2, 2023 Share Posted January 2, 2023 Hello, It is not really a feature but it would be nice if the "contact us" mails were sent with the contact address as "reply to". I very often reply to myself (with the antispam filtering it so i don't actually see the reply...) and believe i replied to the user. What do you think ? Richard Arch 1 Link to comment Share on other sites More sharing options...
Richard Arch Posted January 2, 2023 Share Posted January 2, 2023 Yes, I agree. Also the bulk mail could make good use of a "reply to" email address. Link to comment Share on other sites More sharing options...
Stuart Silvester Posted January 2, 2023 Share Posted January 2, 2023 We've done this for a long time, it might be worth checking that your email service/server isn't stripping it for some reason. Here are the headers from a message I just tested: MIME-Version: 1.0 To: incoming@invision.local From: =?UTF-8?B?Q29udGFjdCBVcyBUZXN0?= <test@invision.local> Subject: =?UTF-8?B?QSB1c2VyIHNlbnQgYSBtZXNzYWdlIHZpYSB0aGUgY29udGFjdCBmb3Jt?= Date: Mon, 02 Jan 2023 11:21:41 +0000 Content-Type: multipart/alternative; boundary="--==_mimepart_13ae51f629e2f82a07451774723f2078"; charset=UTF-8 Content-Transfer-Encoding: 8bit Reply-To: =?UTF-8?B?Q29udGFjdCBVcyBUZXN0?= <contacteee@test.local> Link to comment Share on other sites More sharing options...
jesuralem Posted January 2, 2023 Author Share Posted January 2, 2023 Thanks for the answer, i have to say i was surprised 🙂 I am using SES with @Jon Erickson great app. I will try to look into it. Link to comment Share on other sites More sharing options...
Jon Erickson Posted January 2, 2023 Share Posted January 2, 2023 We do set the ReplyTo. This is how we compose the payload sent to AWS. // Get from settings $fromName = $fromName ?? \IPS\Settings::i()->board_name; $fromEmail = $manager->getSendingEmailAddress($fromEmail) ?? \IPS\Settings::i()->email_out; // Compose the email payload $payload = [ 'Destination' => [ 'ToAddresses' => $toRecipients ], 'ReplyToAddresses' => [$fromEmail], 'Source' => static::encodeHeader($fromName, $fromEmail), 'Message' => [ 'Body' => [ 'Html' => [ 'Charset' => 'UTF-8', 'Data' => $this->compileContent('html', static::_getMemberFromRecipients($to)) ], 'Text' => [ 'Charset' => 'UTF-8', 'Data' => $this->compileContent('plaintext', static::_getMemberFromRecipients($to)) ], ], 'Subject' => [ 'Charset' => 'UTF-8', 'Data' => $this->compileSubject(static::_getMemberFromRecipients($to)), ], ], 'ConfigurationSet' => $configSet, ]; Link to comment Share on other sites More sharing options...
Stuart Silvester Posted January 2, 2023 Share Posted January 2, 2023 45 minutes ago, Jon Erickson said: We do set the ReplyTo. This is how we compose the payload sent to AWS. // Get from settings $fromName = $fromName ?? \IPS\Settings::i()->board_name; $fromEmail = $manager->getSendingEmailAddress($fromEmail) ?? \IPS\Settings::i()->email_out; // Compose the email payload $payload = [ 'Destination' => [ 'ToAddresses' => $toRecipients ], 'ReplyToAddresses' => [$fromEmail], 'Source' => static::encodeHeader($fromName, $fromEmail), 'Message' => [ 'Body' => [ 'Html' => [ 'Charset' => 'UTF-8', 'Data' => $this->compileContent('html', static::_getMemberFromRecipients($to)) ], 'Text' => [ 'Charset' => 'UTF-8', 'Data' => $this->compileContent('plaintext', static::_getMemberFromRecipients($to)) ], ], 'Subject' => [ 'Charset' => 'UTF-8', 'Data' => $this->compileSubject(static::_getMemberFromRecipients($to)), ], ], 'ConfigurationSet' => $configSet, ]; You would need to look at the $additionalHeaders parameter to get the Reply-To value (if it exists) jesuralem 1 Link to comment Share on other sites More sharing options...
Jon Erickson Posted January 2, 2023 Share Posted January 2, 2023 1 minute ago, Stuart Silvester said: You would need to look at the $additionalHeaders parameter to get the Reply-To value (if it exists) Gotcha. Thanks for the insight. Stuart Silvester and jesuralem 2 Link to comment Share on other sites More sharing options...
Recommended Posts