Skip to content

Errors with new smtp connections #1761

@calisro

Description

@calisro

I'm seeing some issues with the fix put in for smtp connections

#1751

2017-03-28 08:20 ERROR    notify_entry  Email-SummaryTV please run connect() first
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/notifiers/notify.py", line 103, in send_notification
    send_notification(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/notifiers/notification_framework.py", line 117, in send_notification
    notifier.notify(title, message, rendered_config)  # TODO: Update notifiers for new api
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/notifiers/email.py", line 165, in notify
    self.mail_server.sendmail(email['From'], config['to'], email.as_string())
  File "/usr/lib/python2.7/smtplib.py", line 733, in sendmail
    (code, resp) = self.mail(from_addr, esmtp_opts)
  File "/usr/lib/python2.7/smtplib.py", line 480, in mail
    self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender), optionlist))
  File "/usr/lib/python2.7/smtplib.py", line 341, in putcmd
    self.send(str)
  File "/usr/lib/python2.7/smtplib.py", line 333, in send
    raise SMTPServerDisconnected('please run connect() first')
SMTPServerDisconnected: please run connect() first

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions