Click here to Skip to main content
13,047,567 members (71,670 online)
Rate this:
Please Sign up or sign in to 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 9-Mar-14 20:47pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
chandrakant.k 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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Why don't you use mailto[^]?

This is the most simplest approach and open the email client directly.
chandrakant.k 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.
Tadit Dash 11-Mar-14 6:32am
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 10 Mar 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100