I have following code which works really well except I don't know how to send a cc. What should I replace "Sendcc" with ? What am I missing??
'Start Lotus Notes application
Const EMBED_ATTACHMENT = 1454
Set session = CreateObject("Notes.NotesSession"
Set db = session.GetDatabase("", ""
Call db.OpenMail
Set Doc = db.CreateDocument
msg = "Please find herewith ...." & vbCrLf & vbCrLf
msg2 = vbCrLf & vbCrLf & vbCrLf & "Thank you and have a nice day !"
Call Doc.ReplaceItemValue("SendTo", "mike ....."
Call Doc.ReplaceItemValue("Sendcc", "Dan....", "Rick......"
Call Doc.ReplaceItemValue("Subject", "Report for " & Date)
Set rtitem = Doc.CreateRichTextItem("Body"
Call rtitem.AppendText(msg)
MyAttachment = "C:\documents\...."
Call rtitem.EmbedObject(EMBED_ATTACHMENT, "", MyAttachment)
Call rtitem.AppendText(msg2)
Doc.SaveMessageOnSend = True
Call Doc.PutInFolder("BBSS"
Call Doc.Send(False)
Set session = Nothing
'Start Lotus Notes application
Const EMBED_ATTACHMENT = 1454
Set session = CreateObject("Notes.NotesSession"
Set db = session.GetDatabase("", ""
Call db.OpenMail
Set Doc = db.CreateDocument
msg = "Please find herewith ...." & vbCrLf & vbCrLf
msg2 = vbCrLf & vbCrLf & vbCrLf & "Thank you and have a nice day !"
Call Doc.ReplaceItemValue("SendTo", "mike ....."
Call Doc.ReplaceItemValue("Sendcc", "Dan....", "Rick......"
Call Doc.ReplaceItemValue("Subject", "Report for " & Date)
Set rtitem = Doc.CreateRichTextItem("Body"
Call rtitem.AppendText(msg)
MyAttachment = "C:\documents\...."
Call rtitem.EmbedObject(EMBED_ATTACHMENT, "", MyAttachment)
Call rtitem.AppendText(msg2)
Doc.SaveMessageOnSend = True
Call Doc.PutInFolder("BBSS"
Call Doc.Send(False)
Set session = Nothing