freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
2.98k stars 489 forks source link

feature: Allow configuring SMTP headers in app-settings #2546

Closed jesperordrup closed 1 year ago

jesperordrup commented 1 year ago

Some SMTP providers need some additional headers when sending. For instance Elastic email https://help.elasticemail.com/en/articles/2376848-how-to-manage-custom-headers

Allow to specify a collection of headers such as "isTransactional" : true when defining smtp server connection would make freescout work with the "pro" smtp servers

https://freescout.umakers.dk/app-settings/emails

freescout-helpdesk commented 1 year ago

Are you sure Elasticemail will read isTransactional header when sending an email via SMTP? All examples in their docs are using REST API and isTransactional is set as parameter when sending a request to REST API. Try to check with them.

jesperordrup commented 1 year ago

Hi freescout

Yep - pretty sure. From the coversation I had with them the other day on their chat:

image

Also this snip found on https://help.elasticemail.com/en/articles/2376848-how-to-manage-custom-headers

image

freescout-helpdesk commented 1 year ago

Implemented in the master branch. Add the following to your /.env file and clear cache:

APP_CUSTOM_MAIL_HEADERS="IsTransactional:True"
jesperordrup commented 1 year ago

@freescout-helpdesk wow thats fast :-)

I have to wait trying until your next release.