3 replies
by rrv
If you use VB for programming with Outlook automation server then there is a solution.
Solution:
========================================
Public otApp As New Outlook.Application
Public otMsg As Outlook.MailItem
Public otRecip As Outlook.Recipient
Public otAttach As Outlook.Attachment
=======================================
Set otMsg = otApp.CreateItem(olMailItem)
Set otRecip = otMsg.Recipients.Add(TypedMailidSeparatebySemicolons)
otRecip.Type = olTo
otMsg.Subject = "EmailSubject"
otMsg.Body = "Email Body"
Set otAttach = otMsg.Attachments.Add(DocumentName, olByValue, , DocumentName)
For Each otRecip In otMsg.Recipients
If Not otRecip.Resolve Then otMsg.Display
Next
otMsg.OriginatorDeliveryReportRequested = True
otMsg.ReadReceiptRequested = True
if msgbox("Do you want to send BCC of this message to John",vbquestion+vbyesno)=vbyes then
Set otRecip = otMsg.Recipients.Add(john@john.com)
otRecip.Type = olBCC
otMsg.Send
by tgutierrez
by tgutierrez
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending