Jump to content

Recommended Posts

Posted

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 ?

Posted

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>

 

Posted

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,
        ];

Posted
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)

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...