Click here to Skip to main content
15,868,292 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hello friends,

I am trying to make an web based application where the requirement is to send an email using client email application like "MS Outlook","Mozilla Thunderbird","Opera","Lotus Note" etc. I used 'window.href' to send direct email using default email client. But requirement is to Give option to the user to choose from list of installed client email applications.

I have option to use client scripting languages like 'JavaScript' OR 'JQuery' Only.

Please help me to achieve this requirement. Thank you all in advance.


~Chandrakant Kumawat
Posted

What you are trying is a bad idea all the way around. Javascript does not have access to resources outside the browser for a reason. Could you imagine someone just being able to obtain a list of software installed on your system without any notification.

It would also be hard to manage you logic to determine with all the mail clients, OS's, and browsers in the world.

If what you described is truly a requirement you need to return to your boss, client, professor and educate them on the proper way to handle security concerns like this.
 
Share this answer
 
Comments
Chandrakant Kumawat 11-Mar-14 0:19am    
Hi Mr.Watson

I am really thankful to you for spending your precious time on my problem statement.

I was also totally agreed that java script is only accessible within the browser area. but as per the requirement, i had to looking for a solution. But just wanted to confirmed that is this technically feasible or not, and i got my answer now.

Thank you very much for your suggestion.
Why don't you use mailto[^]?

This is the most simplest approach and open the email client directly.
 
Share this answer
 
v2
Comments
Chandrakant Kumawat 11-Mar-14 0:13am    
Hi Tadit,

Thank you very much for your suggestion. But the requirement is to prompt user to open specific email client only. and the limitation with 'mailto' is that it opt only default email client which does not fulfill the requirement.

Anyways really thank you very much for spending time into looking my issue.
Then there is no other way out as JavaScript cannot access the client machine due to security restrictions.

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