Click here to Skip to main content
Rate this: bad
good
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 21:47pm
Rate this: bad
good
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.
  Permalink  
Comments
chandrakant.k at 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
good
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.
  Permalink  
v2
Comments
chandrakant.k at 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 at 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
0 OriginalGriff 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 10 Mar 2014
Copyright © CodeProject, 1999-2014
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