TurboGears / backlash

Standalone WebOb port of the Werkzeug Debugger with Python3 support born as a WebError replacement for TurboGears2
MIT License
13 stars 11 forks source link

Add the ability to define the smtp port. #7

Closed href closed 9 years ago

href commented 9 years ago

I'm trying out backlash for a new server deployment and I noticed that it's not possible to define an smtp port to the EmailReporter. Adding this option would be nice, as it allows for non-standard smtp ports when using a non-privileged smtp testserver for example.

amol- commented 9 years ago

This should be already available as backlash uses smtplib.SMTP which uses connect() which states

If the hostname ends with a colon (':') followed by a number, 
that suffix will be stripped off and the number interpreted
as the port number to use.

Isn't it working for you?

href commented 9 years ago

It is actually, I totally missed this in the docs. I tested it and it works!

Thanks and sorry for the unnecessary ticket :sweat: