Implementing the base64 encoder to smtp sender