Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone,

I am creating a HTML form and want to send email through this form. I don't want to use PHP Script to send email. I need any java script ya jquery code to send email through this html form.

please help me. please send me any link or solution
Posted
Comments
Sergey Alexandrovich Kryukov 7-May-14 2:41am    
Why, why Javascript? It would be utterly unsafe...
—SA

1 solution

Using JavaScript to send email is the worst idea you ever had!
Remember that JavaScript runs INSIDE the client's browser and for security reasons it has no access the the OS!
So the only way to even try to send email is using the mailto protocol, and that assumes client using some kind of desktop mail client. That can be a false assumption that will lead the user to total confusion...
More than that!
To who do you want to send that email? Your current user?! He is on your website - show him a message!
And who is the sender? The current user? Or your system?
I advise you to review your application design and needs!!!
 
Share this answer
 
Comments
coolnavjot31 7-May-14 7:33am    
Hi i don't want to use mailto protocol because it open outlook or client email.
i do not want to show client email. i know that it may be solve with the help of .asp script or php script.
But i could not get any sample link for this. so please any one provide solution...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900