I'm using MAPIMESSAGE and MAPISESSION control. For some reasons, if I only send to 1 recipient, it won't work. If I send to more than 1 recipients, it is working fine.
the coding is like this:
loMAPISession.SignOn
loMAPIMessage.SessionID = loMAPISession.SessionID
*/ Start a new mail message and build the text
loMAPIMessage.Compose()
for lnCtr = 1 to alen(laRecipients, 1)
loMAPIMessage.RecipIndex = loMAPIMessage.RecipCount
loMAPIMessage.RecipType = laRecipients(lnCtr, 1)
loMAPIMessage.RecipDisplayName = laRecipients(lnCtr, 2)
endfor
loMAPIMessage.MsgSubject = lcSubject loMAPIMessage.MsgNoteText = lcBody
loMAPIMessage.Send(0)
loMAPISession.SignOff
Do I need to set any other properties?
Thank you for any help.
the coding is like this:
loMAPISession.SignOn
loMAPIMessage.SessionID = loMAPISession.SessionID
*/ Start a new mail message and build the text
loMAPIMessage.Compose()
for lnCtr = 1 to alen(laRecipients, 1)
loMAPIMessage.RecipIndex = loMAPIMessage.RecipCount
loMAPIMessage.RecipType = laRecipients(lnCtr, 1)
loMAPIMessage.RecipDisplayName = laRecipients(lnCtr, 2)
endfor
loMAPIMessage.MsgSubject = lcSubject loMAPIMessage.MsgNoteText = lcBody
loMAPIMessage.Send(0)
loMAPISession.SignOff
Do I need to set any other properties?
Thank you for any help.