~edwargix/git.sr.ht

1fd577d3853d410a5b921ec2413d50eba5cff541 — Simon Ser 5 years ago 91f34ca
Use smtp-from when sending SMTP message

smtp-user is for authentication only. smtp-from was read from the config
file but unused.
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/email.py
M gitsrht/blueprints/email.py => gitsrht/blueprints/email.py +1 -1
@@ 319,7 319,7 @@ def send_email_send(owner, repo):
        print("Sending to recipients", recipients)
        for i, email in enumerate(emails):
            session.pop("commentary_{i}", None)
            smtp.send_message(email, smtp_user, recipients)
            smtp.send_message(email, smtp_from, recipients)
        smtp.quit()

        # TODO: If we're connected to a lists.sr.ht address, link to their URL