Browse Source

Remove leftover .read() call

pull/70/head
Piotr F. Mieszkowski 2 months ago
parent
commit
92f3cedc51
  1. 2
      gpg-mailgate-web/cron.py

2
gpg-mailgate-web/cron.py

@ -52,7 +52,7 @@ def authenticate_maybe(smtp):
smtp.login(conf.get_item('smtp', 'username'), conf.get_item('smtp', 'password'))
def send_msg( mailsubject, messagefile, recipients = None ):
mailbody = load_file( conf.get_item('cron', 'mail_templates') + "/" + messagefile).read()
mailbody = load_file( conf.get_item('cron', 'mail_templates') + "/" + messagefile)
msg = MIMEMultipart("alternative")
msg["From"] = conf.get_item('cron', 'notification_email')

Loading…
Cancel
Save