mail sender: prepare rewrite in Python3