Normally SMTP uses PLAIN authentication, why are you base64 encoding it?? There are many authentication mechanisms!