I generally use CDO to send email messages but I need to use Exchange Encryption.
Is there a way to turn on or off a digital signature and encryption for an outlook mail item automated from FoxPro? Below is my rather crude code to send an email using the outlook client on the PC the program is running on. As far as I can tell, there is no way to turn on or off the digital signature and encryption for a single mail item. I have found that if I set the outlook to always encrypt and sign, all automated emails are encrypted and signed.
loOutlook = CREATEOBJECT('outlook.application')
loEmailItem = loOutlook.CreateItem(0)
loEmailItem.TO = m.msgEmailAddresses
loEmailItem.Subject = m.msgSubject
loEmailItem.Body = m.msgText
loEmailItem.Importance = 1
loEmailItem.SEND
Scott Sherman