I've a agent lotus script currently which creates documents reading a text file. Now I've to take the 'Ticketnumber' from that lotusscript and at the end of that lotus script I've to put in more script which will e-mail the Ticketnumber to a person and cc 2 people.
send to is 1 member
and cc is 2 members.
Also I've to include the link of the document.
The one I'm using is this one currently. This one sends two different e-mails to two people. I want to send one e-mail to the main person and cc the other people.
Dim NewDoc As NotesDocument
Dim rtitem As NotesRichTextItem
Set NewDoc = New NotesDocument( db )
Set rtitem = newDoc.CreateRichTextItem( "Body" )
NewDoc.SendTo = tdoc.Assignee
NewDoc.Subject = "New Ticket (" & TicketNum & ") has been Assigned to you"
Call rtitem.AppendText("A new Ticket (" & TicketNum & ") has been opened and you are the_
Primary Person Assigned to it.")
Call rtitem.AppendDocLink(Doc, "Document Link")
Dim NewDoc1 As NotesDocument
Dim rtitem1 As NotesRichTextItem
Set NewDoc1 = New NotesDocument( db )
Set rtitem1 = newDoc1.CreateRichTextItem( "Body" )
NewDoc1.SendTo = tdoc.Assignee_1
NewDoc1.Subject = "New Ticket (" & TicketNum & ") has been Assigned to you"
Call rtitem1.AppendText("A new Ticket (" & TicketNum & ") has been opened_
and you are the Secondary Person Assigned to it.")
Call rtitem1.AppendDocLink(Doc, "Document Link")
I want to send it to tdoc.Assignee and cc it to tdoc.Assignee_1 and also I want to include the link. Currently the link is not going in the e-mail to them.