tweaks to smtp example