Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot Send Mails in Lotus Notes
Message
From
30/05/2001 07:42:36
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00512321
Message ID:
00512579
Views:
8
HI


=DDESETOPTION("SAFETY",.F.)
gnChanNum = DDEINITIATE("NOTES", "SENDMAIL")
glExecute = DDEEXECUTE(gnChanNum, "NewMessage")
glExecute=.DDEExecute(gnChanNum, "To STEVEN@BOWSKILLS.FREESERVE.CO.UK")
glExecute=.DDEExecute(gnChanNum, "cc james@brown.freeserve.co.uk")
lcComandToRun='DDEEXECUTE(gnChanNum, '+'"'+ "AttachFile c:\mailme.zip" +'")'
lcComandToRun='DDEEXECUTE(gnChanNum, '+'"AttachFile '+THISFORM.lcFileToSend+'")'
glExecute = DDEEXECUTE(gnChanNum, "Send")
DDETERMINATE(gnChanNum)

This can be used on older and new versions of notes

Notes must be open

you can find out if notes is open by usin the windows API FindWindow()

passing it the notes class name, which is "NOTES"

Cheers

Steven

Previous
Reply
Map
View

Click here to load this message in the networking platform