2

I am working in an application. In this user enter his email id to get the some application setting.

After some time he will get mail with settings embedded and an apply button. Once user click on that we need to set the setting (in some file or registry).

Desktop application will read the setting(File / Registry) once it is launched.

This is the requirement. My question is,

How to call Win32/MFC application on clicking apply button with setting parameter.

Adrian McCarthy
  • 45,555
  • 16
  • 123
  • 175
Umesha MS
  • 2,861
  • 8
  • 41
  • 60

1 Answers1

7

You cannot arbitrarily execute something in an email message for obvious reasons.

The closest integration you could get would be to pass the configuration data as an argument to a custom URL handler in an HTML anchor; your mileage would likely vary wildly depending on browser/email client/webmail service so this is a bad idea.

Far better to simply send the configuration as an attachment with a file extension associated with your application and tell the user to open it, your app reads the config file and your done.

Community
  • 1
  • 1
Alex K.
  • 171,639
  • 30
  • 264
  • 288
  • +1, Or it can be done using signed ActiveX and Trusted web site.IE only. – rkosegi Oct 15 '12 at 11:18
  • Thanks for u r replay. it worked for me. one thing. when i run the command in IE it worked fine. But i run the same command in crome it failed. – Umesha MS Oct 15 '12 at 14:19
  • Which API i need to use to register custom URL handler. do i need to use registry API's to set it, or do i need to use some other API to register it. – Umesha MS Oct 16 '12 at 04:56