Update smtp_server.py

Condensed an if-elif down to something simpler.