kevthehermit/PasteHunter

smtp_output fails on servers with no authentication

pmbento opened this issue · 1 comments

We're always forcing SMTP authentication in smtp_output.py with smtp_conn.login. We should only run that when we have both smtp_user and smtp_pass defined.

A simple fix would be:
if (self.smtp_user and self.smtp_pass): smtp_conn.login(self.smtp_user, self.smtp_pass)

PRs are definitely welcome!