Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
5ceae46
remove unused variable in _create_message_attachments
bmos Apr 9, 2026
0109ed7
rebuild test_smtp
bmos Apr 10, 2026
60b3d8f
Merge branch 'move-coop:main' into email_module_updates
bmos Apr 10, 2026
41b9ab2
remove compatibility code for python < 3.8 from test_gmail.py
bmos Apr 10, 2026
996f4ad
update test_gmail to pytest
bmos Apr 10, 2026
f5e41ee
DRY up test_gmail
bmos Apr 10, 2026
a1d7d8a
add missing type hints to test_gmail
bmos Apr 10, 2026
bd55afa
add email sending tests
bmos Apr 10, 2026
35a34f2
use pytest.mark.usefixtures in test_smtp
bmos Apr 10, 2026
e159131
restore supports_strict_parsing workaround
bmos Apr 10, 2026
dfa7c6a
add authentication flow test to test_smtp
bmos Apr 10, 2026
d77cc34
content.read -> content.getvalue in test_smtp
bmos Apr 10, 2026
2464c81
add get_attachments to mock_conn
bmos Apr 10, 2026
82185d3
add dynamic mime type check
bmos Apr 10, 2026
f3826d0
handle kwargs in get_msg
bmos Apr 10, 2026
53fc066
use real file in test_send_email_files_as_single_string
bmos Apr 10, 2026
0a7e913
Improve EmptyListError docstring
bmos Apr 10, 2026
2406109
Add SMTP_SSL support
bmos Apr 10, 2026
630e93d
infer default port from security protocol
bmos Apr 10, 2026
ff4e355
Add type hints to SMTP
bmos Apr 10, 2026
1b500dd
document SMTP.get_connection()
bmos Apr 10, 2026
3812008
Improve SMTP._send_message() docstring + typing
bmos Apr 10, 2026
5e394a3
improve SMTP._infer_port() docstring
bmos Apr 10, 2026
5633358
add SMTP.quit() method
bmos Apr 10, 2026
d891e5a
improved SMTP._send_message() method
bmos Apr 10, 2026
f853017
Strip Bcc from Message object before sending
bmos Apr 10, 2026
2a9ea19
_infer_port short also return port as int
bmos Apr 10, 2026
0fb6703
fix implicit tls to allow overriding to false
bmos Apr 11, 2026
70b769a
docstrings and types in sendmail.py
bmos Apr 11, 2026
37833ad
Also patch SMTP_SSL in mock_conn
bmos Apr 11, 2026
25542fa
programatically disable tls if ssl is enabled
bmos Apr 11, 2026
671fb9c
parameterize test_connection_authentication_flow
bmos Apr 11, 2026
5b33c7e
expand test_connection_authentication_flow to test environment variab…
bmos Apr 11, 2026
b872f2a
add ssl/tls override test to test_connection_authentication_flow
bmos Apr 11, 2026
cb8240e
Merge branch 'main' into email_module_updates
bmos Apr 16, 2026
ac96c6b
Include error message in log if message fails to send
bmos Apr 16, 2026
0d12fd8
Merge branch 'main' into email_module_updates
bmos Apr 17, 2026
5264615
Merge branch 'main' into email_module_updates
bmos Apr 28, 2026
1004edd
Blacklist broken mysql-connector-python 9.7.0
bmos Apr 28, 2026
e6d0f45
Merge branch 'main' into email_module_updates
bmos May 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion parsons/notifications/gmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ def _send_message(self, msg):
raise
else:
self.log.debug(message)
self.log.info(f"Message sent succesfully (Message Id: {message['id']})")
self.log.info(f"Message sent successfully (Message Id: {message['id']})")

return message
3 changes: 1 addition & 2 deletions parsons/notifications/sendmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ def _create_message_attachments(

for f in files:
filename = getattr(f, "name", "file")
file_bytes = b""

if isinstance(f, io.StringIO):
file_bytes = f.getvalue().encode()
Expand Down Expand Up @@ -258,7 +257,7 @@ def send_email(self, sender, to, subject, message_text, message_html=None, files

self._send_message(msg)

self.log.info("Email sent succesfully.")
self.log.info("Email sent successfully.")


class EmptyListError(IndexError):
Expand Down
Loading
Loading