Skip to content

Commit

Permalink
smtp.server is better
Browse files Browse the repository at this point in the history
  • Loading branch information
avdata99 committed Apr 26, 2024
1 parent 735b026 commit d8d9788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def mail_recipient(recipient_name: str,
attachments=attachments)

# send an email ONLY if we have smtp settings available
if config.get('smtp.mail_from'):
if config.get('smtp.server'):
_mail_recipient(
recipient_name, recipient_email,
site_title, site_url, subject, body,
Expand Down

0 comments on commit d8d9788

Please sign in to comment.