Jerzy Peter
Programmer
Hello everyone. This is my first post. I would appreciate any help to resolve my problem.
I'm writing a procedure to send email from our VFP application using Redemption.
Here is the stripped code that is working for one recipient address / one CC address:
loOutLook = CREATEOBJECT("Outlook.Application")
loNamespace = loOutLook.GetNamespace("MAPI")
loNamespace.Logon
loSafeItem = CREATEOBJECT("Redemption.SafeMailItem")
loMAPIUtils = CREATEOBJECT("Redemption.MAPIUtils")
loItem = loOutLook.CreateItem(0)
loSafeItem.Item = loItem
loSafeItem.Recipients.Add(lcReceipientAddress)
loSafeItem.cc = lcCCAddress
loSafeItem.Recipients.ResolveAll()
loSafeItem.Send
loMAPIUtils.DeliverNow()
I wanted to send one email to multiple recipients:
When I assign 2 addresses to the variable lcReceipientAddress: lcReceipientAddress="one@abc.com;two@abc.com" with semicolon as separator it doesn't work. It sends email to CC address.
Thanks,
I'm writing a procedure to send email from our VFP application using Redemption.
Here is the stripped code that is working for one recipient address / one CC address:
loOutLook = CREATEOBJECT("Outlook.Application")
loNamespace = loOutLook.GetNamespace("MAPI")
loNamespace.Logon
loSafeItem = CREATEOBJECT("Redemption.SafeMailItem")
loMAPIUtils = CREATEOBJECT("Redemption.MAPIUtils")
loItem = loOutLook.CreateItem(0)
loSafeItem.Item = loItem
loSafeItem.Recipients.Add(lcReceipientAddress)
loSafeItem.cc = lcCCAddress
loSafeItem.Recipients.ResolveAll()
loSafeItem.Send
loMAPIUtils.DeliverNow()
I wanted to send one email to multiple recipients:
When I assign 2 addresses to the variable lcReceipientAddress: lcReceipientAddress="one@abc.com;two@abc.com" with semicolon as separator it doesn't work. It sends email to CC address.
Thanks,