fastapi-mail icon indicating copy to clipboard operation
fastapi-mail copied to clipboard

Allow setting of msgid and msgid domain

Open mybooc opened this issue 3 years ago • 4 comments

  1. Extra 'msgid domain' ConnectionConfig parameter

Set your own domain instead of the currently used local hostname.

MAIL_MSGID_DOMAIN: Optional[str] = None

  1. Extra 'msgid domain' MailMsg parameter

Dynamically set your own 'msgid domain' together with the MailMsg parameters.

:param msgid_domain

Overrides MAIL_MSGID_DOMAIN parameter

  1. Extra 'msgid' MailMsg parameter

Dynamically set the 'msgid' together with the MailMsg parameters.

:param msgid

mybooc avatar Aug 23 '22 19:08 mybooc

I should do research about it and then bring some results, if you have already approach implemented, please feel free to submit PR.

sabuhish avatar Oct 02 '22 13:10 sabuhish

@mybooc, it this pull request related #204?

LuckyLub avatar Oct 23 '23 13:10 LuckyLub

No, this issue is about setting (part of) the Message-ID of an email, a unique message identifier. If you do not supply it, the Message-ID is generated by the SMTP server:

The github email from you had the Message-ID:

<sabuhish/fastapi-mail/issues/143/[email protected]>

mybooc avatar Oct 23 '23 15:10 mybooc

Ah yes, I see. I thought maybe it was related because of the domain.

LuckyLub avatar Oct 24 '23 06:10 LuckyLub