Javascript to send email without using 3rd party service?

Hi Experts,

I am wondering whether there is a way to write JavaScript code to send email:
1. using known smtp information
2. neither letting user input username/password, nor hard codeing them in the JavaScript
3. not using 3rd party service

I couldn't make it because of the security, but just want to make sure whether there is a way to do that? If there is, how?
Assuming there computer account currently loged in can access email application, can it be use?
Thank you!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

peeyush guptaCommented:
It's not possible until unless you have some sort of server-side programs.

But you can always try something like this.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dave BaldwinFixer of ProblemsCommented:
peeyush gupta is correct.  Javascript does not have the ability to connect to a SMTP server to send email.  The protocols required for email are not part of JavaScript.

The only way is to use AJAX to send data to a server side program that can send email.
huangs3Author Commented:
Thanks! peeyush gupta provides straight answer, and Dave Baldwin provides some additional conclusion to help me capture why.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.