sending mails using outlook object
Posted on 2003-11-27
i am developing an application to send mails using the outlook object. since i was getting a security alert everytime the mails were sent, i downloaded and used the Redemption.dll library and safe mail objects.
i have pasted the code below:
Set myItem = CreateObject("Redemption.SafeMailItem")
Set oitem = oOutlookApplication.CreateItem(olMailItem)
strToAddress = olInboxItems_ItemAdd(myITems(intcnt))
myItem.Item = oitem
myItem.Subject = "test"
myItem.Body = "this is a test"
the problem with this code is that the mails are sent to the draft folder and not the outbox. i found out why this is happening. it is because there is no email address in "sent by". i am not able to assign a sent by email address using redemption. so what is the solution to this?