sabuhish / fastapi-mail

Fastapi mail system sending mails(individual, bulk) attachments(individual, bulk)
https://sabuhish.github.io/fastapi-mail/
MIT License
680 stars 82 forks source link

Allow setting of msgid and msgid domain #143

Open mybooc opened 2 years ago

mybooc commented 2 years ago
  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

sabuhish commented 1 year ago

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

LuckyLub commented 10 months ago

@mybooc, it this pull request related #204?

mybooc commented 10 months ago

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/1775233261@github.com>

LuckyLub commented 10 months ago

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