v2.0.3
Minor change
- Update pyproject.toml to reflect correct vendor name.
- Refresh token 5 minutes before expiration time as defined in the SER API guide.
- Improve behavior of Message.header_from setter. If None is passed the HeaderFrom is removed.
Added
- Add
header_fromas optional to Message constructor.Message("Body", MailUser("sender@example.com", "Joe Sender"), MailUser("sender@example.com", "Header From"))
- Add
MessageHeadersobject to deal with from address and future properties - Add
Message.header_fromto returnMessageHeader.header_fromproperty isMailUser
Changed behavior
- Modified the
to_json()function to only generate properties if they have data assigned.
Bug fixes
- Improperly exposed class values which can lead to misuse.
- Fixed
Message.headersto returnMessageHeaderobject which can beNonesince it's optional. - Fixed
Message.header_senderto returnMessageHeader.header_fromproperty isMailUser
Full Changelog: v2.0.1...v2.0.3