Add bulk email sending functionality and error handling issue #275#285
Add bulk email sending functionality and error handling issue #275#285sabuhish merged 5 commits intosabuhish:masterfrom
Conversation
- Introduced `send_messages()` method to allow sending multiple emails in a single SMTP session, improving efficiency and reducing overhead. - Added `EmptyMessagesList` exception to handle cases where the messages list is empty. - Updated documentation to include examples of bulk email sending. - Enhanced tests to cover various scenarios including empty lists and invalid message types.
- Adjusted the import order in `fastmail.py` for better readability. - Updated the test in `test_connection.py` to decode email payloads before assertions, ensuring accurate content verification for templated messages.
…improve formatting in name email example
|
Hi @pipinstalled, thanks for the work. |
… multiple messages in one call. Updated documentation and examples accordingly, and modified tests to reflect the new method. Enhanced error handling for empty message lists and invalid message types.
Thanks for your comment I made some changes, please check it and let me know if it needs any change. @sabuhish |
|
@sabuhish Have you any idea when will this PR merge? |
|
Thanks for the updated code. I think we are safe to merge this. |
Base on request on issue no #275
send_messages()method to allow sending multiple emails in a single SMTP session, improving efficiency and reducing overhead.EmptyMessagesListexception to handle cases where the messages list is empty.