Jump to content

Contact us reply to address


jesuralem

Recommended Posts

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

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

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)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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