Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Carraige return being ignored automating outlook
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00721824
Message ID:
00721928
Views:
12
Just thought, may be Outlook Express is not my default e-mail client? How can I find it out?

Also what are ShellExecute return code means?

>I've tried this code at home, but nothing happens at all (e.g. no message was created). I'm using Outlook Express. ShellExecute returned 5.
>
>I think, you probably need to use Steve's suggestion.
>
>>From the Automating VFP book, in the outlook chapter, is the following code:
>>
>>
>>#DEFINE CR CHR(13)
>>WITH oMailItem
>>.Subject = "Meeting next week"
>>.Body = "Just confirming our meeting on Tuesday at 3." + CR + ;
>>"Please bring ideas, as well as your notes from last year's event."
>>
>>
>>I am using something similar:
>>
>>
>>DECLARE INTEGER ShellExecute ;
>>IN SHELL32.DLL ;
>>INTEGER nWinHandle,;
>>STRING cOperation,;
>>STRING cFileName,;
>>STRING cParameters,;
>>STRING cDirectory,;
>>INTEGER nShowWindow
>>	   	
>>lcEmailAddress = ALLTRIM(fcsecure.sc_email)
>>lcSubject = "Ticker item question"
>>lcMessageBody = "(...comments, question, corrections here...)" + CR + ;
>>                "  Project name: "+ALLTRIM(jobs.jc_name)  + CR + ;
>>		"  Project number: "+ALLTRIM(jobs.jc_task)  + CR + ;
>>		"  Item description: "+ALLTRIM(v_ticklerpk.t_desc)  + CR + ;
>>		"  Due Date: "+DTOC(v_ticklerpk.t_date)  + CR + ;
>>		"  Copies: " +ALLTRIM(STR(v_ticklerpk.t_copies))
>>
>>ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + ;
>>                "&body=" + lcMessageBody, "", "", 1)
>>
>>when the outlook email msg window is displayed the email body text all runs together. No line feeds. Is this something w/ ShellExecute?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform