Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: ole outlook send mail unicode
We have many programs that are using DDE which we can no longer use. We need to convert them all to OLE.
Any additional would be greatly appreciated! Thanks
; modify these strings to reference the recipient email and path to file attachment recip="name@windowware.com" AttachmentPath="C:\Temp\testfile.txt" ; Create the Outlook session. objOutlook = ObjectCreate("Outlook.Application") ; Create the message. objOutlookMsg = objOutlook.CreateItem(0) ; Display to user (the following line can be removed if you do not want any interface) objOutlookMsg.Display ; add Recipient objOutlookRecip=objOutlookMsg.Recipients objOutlookRecip.Add(Recip) ; Set the Subject, Body, objOutlookMsg.Subject = "This is an Automation test with Microsoft Outlook" objOutlookMsg.Body = StrCat("This is the body of the message.",@CRLF) ; Add attachments to the message. objOutlookAttach = objOutlookMsg.Attachments objOutlookAttach.Add(AttachmentPath) objOutlookMsg.Send objOutlook = 0 Exit
Article ID: W13678
Filename: Outlook Sendmail OLE Example.txt
File Created: 2011:09:20:10:24:20
Last Updated: 2011:09:20:10:24:20