Skip to content

Commit

Permalink
fix(EmailDeliveryService): Send message as str for spam check
Browse files Browse the repository at this point in the history
  • Loading branch information
balamurali27 committed Oct 14, 2024
1 parent 1b9a005 commit b0a2780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion press/api/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def send_mime_mail(**data):
api_key, domain = frappe.db.get_value("Press Settings", None, ["mailgun_api_key", "root_domain"])

message = files["mime"].read()
check_spam(message)
check_spam(message.decode("utf-8"))

resp = requests.post(
f"https://api.mailgun.net/v3/{domain}/messages.mime",
Expand Down

0 comments on commit b0a2780

Please sign in to comment.