Added authentication check to smtp_channel.py to prevent emails being sent when not authenticated