Lotus Notes : Multiple Recipients Not working

shettarvikas
Member Posts: 106
Hi,
I am not able to send mails to multiple recipients through ltous notes. It is working fine for single recipient.
Here is my code
Mails are getting bounced back, when I include multiple mail ids (comma seperated).
Please suggest.
Thanks in Advance
VIkas
I am not able to send mails to multiple recipients through ltous notes. It is working fine for single recipient.
Here is my code
IF ISCLEAR(AutoLotusNoteSession) THEN CREATE(AutoLotusNoteSession); { IF ISCLEAR(Vardb) THEN CREATE(Vardb); IF ISCLEAR(Vardoc) THEN CREATE(Vardoc); MESSAGE('2'); IF ISCLEAR(VarrtItem) THEN CREATE(VarrtItem); } AutoLotusNoteSession.Initialize('notespassword'); mailServer := AutoLotusNoteSession.GetEnvironmentString('MailServer',TRUE); mailFile := AutoLotusNoteSession.GetEnvironmentString('MailFile',TRUE); Vardb := AutoLotusNoteSession.GetDatabase(mailServer,mailFile); //Vardb := AutoLotusNoteSession.GetDatabase('',''); IF NOT Vardb.IsOpen THEN BEGIN Vardb.Open; MESSAGE('open'); END ELSE MESSAGE('close'); Vardoc := Vardb.CreateDocument; Vardoc.AppendItemValue('Form', 'Memo'); Vardoc.AppendItemValue('SendTo', VarToMail); // Create CopyTo value for ccRecipients //Call doc.AppendItemValue("CopyTo", ccRecipient) //' Create SendTo value for bccRecipients //Call doc.AppendItemValue("BlindCopyTo", bccRecipient) //' Create Subject value Vardoc.AppendItemValue('Subject', VarSubject); //' Create Body of email value //Debug.Print BodyText VarrtItem := Vardoc.CreateRichTextItem('Body'); VarrtItem.AppendText(VarBody); { //' Embed Attachment to Body If Attachment <> "" Then Set obj = VarrtItem.EmbedObject(EMBED_ATTACHMENT, "", Attachment) End If } Vardoc.SaveMessageOnSend(TRUE); //' Send Email document Vardoc.Send(FALSE,VarToMail); CLEAR(AutoLotusNoteSession); CLEAR(AutLotusNoteDocument); CLEAR(Vardb); CLEAR(Vardoc); CLEAR(VarrtItem);
Mails are getting bounced back, when I include multiple mail ids (comma seperated).
Please suggest.
Thanks in Advance
VIkas
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions