Hi there,
I need to send an email with programatically generated content from a LV application.
I have tried use ActiveX automation but can't seem to even open the Outlook._Application object!
So instead I am trying to use the command line by invoking url.dll
(so this is not strictly a LV related question, just though someone may know the answer)
To create a new email, the following command works fine:
rundll32.exe url.dll,FileProtocolHandler mailto:%s &Subject=%s &body=%s
where the %s are replaced with something sensible at runtime. This seems to work fine.
To add an attachment, either &attach or &attachment are used, however I cannot get either of these to work properly
rundll32.exe url.dll,FileProtocolHandler mailto:%s &Subject=%s &body=%s &attachment="c:\\test.zip" gives no joy
I have tried messing around with all sorts of combinations of escape characters for the "\"s and " " "s howevero with no luck. Best case scenario is the email is generated with no attachement, worst case is Outlook (2002 SP-2) complains the command line argument is not valid and the switch is incorrect.
Any advice???