Port ignored in Mailer._send #43

Closed
00ff opened this Issue Aug 4, 2013 · 1 comment

Projects

None yet

2 participants

@00ff
00ff commented Aug 4, 2013

The port is properly parsed from the email_url, but then it's not used. AFAICT, there's really no way starttls would work without it. On my local site-packages version, I changed it to be:

        if proto == 'ssl':
            log.debug("Setting up SSL")
            session = SMTP_SSL(self._conf['fqdn'], self._conf['port'])
        else:
            session = SMTP(self._conf['fqdn'], self._conf['port'])

Sorry I'm too busy to submit a proper patch.

@00ff
00ff commented Aug 4, 2013

And just an fyi, I tested this and it worked with gmail starttls smtp server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment