LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Launch mailto: dialog

Hi All,
Does anyone have any idea how to get labview to launch a new email
dialog from the default mail reader like web browsers do from the
mailto: script?
Cheers,
Victor
0 Kudos
Message 1 of 3
(4,560 Views)
Hi (from a previous thread),

Send this to "System Exec.vi" :

rundll32.exe url.dll,FileProtocolHandler
mailto:email@url.com?subject=Information%20about%20%20program

This should all be on one line. It might get truncated by mail servers.

The %20 gets translated to a space. You can leave the ?subject=etc.., and
you can even leave the email address. It's also possible to fill in the
message, but I never got it working (or forgot how to do it).

Regards,

Wiebe.


"Victor" wrote in message
news:fc6650f8.0304020356.231d1377@posting.google.com...
> Hi All,
> Does anyone have any idea how to get labview to launch a new email
> dialog from the default mail reader like web browsers do from the
> mailto: script?
> Cheers,
> Victor
0 Kudos
Message 2 of 3
(4,561 Views)

I used your advice to get my solution (Thanks).  I went a step further, and figured out how to write to the body text as well.  Use the following format:

rundll32.exe url.dll,FileProtocolHandle mailto:email@address.com?subject=your subject&body=body text

it seems the %20 was not necessary, it accepted spaces.  I did need to include %0A  for line feeds in the body text.

I found the following help online:

http://www.ianr.unl.edu/internet/mailto.html

0 Kudos
Message 3 of 3
(4,334 Views)