Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted January 2, 20232 yr 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 ?
January 2, 20232 yr Yes, I agree. Also the bulk mail could make good use of a "reply to" email address.
January 2, 20232 yr 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>
January 2, 20232 yr Author 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.
January 2, 20232 yr 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, ];
January 2, 20232 yr 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)
January 2, 20232 yr 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.