I'm wondering if it is possible to send emails using just JavaScript (I am working on a PhoneGap app). I envision a scenario where I can connect to a specific SMTP server with a login and password, and then send emails using that connection. I have already created PHP code that allows me to post the email and get it sent, but I'm unsure if my teacher would approve of this solution. I really want it to function like the native Android email client. Is there any way to achieve this, or any resources you can point me to for more information?