dvasilakis
unread,Aug 12, 2009, 11:05:16 AM8/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Nektra OEAPI Support
I want to send email with the below code
BodyHandler = OEAPIMessage.InsertBody(0,
tagOEAPIBODYLOCATION.OE_IBL_ROOT)
OEAPIMessage.SetBodyProp(BodyHandler,
tagOEAPIMIMEPROPID.OE_PID_HDR_FROM, "")
OEAPIMessage.SetBodyProp(BodyHandler,
tagOEAPIMIMEPROPID.OE_PID_HDR_SENDER, "")
OEAPIMessage.SetBodyProp(BodyHandler,
tagOEAPIMIMEPROPID.OE_PID_HDR_TO, NewMessage.To.AsString)
OEAPIMessage.SetBodyProp
(BodyHandler,tagOEAPIMIMEPROPID.OE_PID_HDR_SUBJECT,
NewMessage.Subject)
OEAPIMessage.SetBodyText(BodyHandler, NewMessage.BodyHtmlText, "text",
"html")
OEAPIMessage.SetState(tagOEAPIMSGSTATE.OE_MSG_UNSENT)
OEAPIMessage.SetFolderID(Outbox.GetID)
OEAPIMessage.Commit()
'NewMailToSend = OEAPIOutbox.CreateMessage
(OEAPIMessage.GetAllSource)
OEAPIObject.SendMessage(OEAPIOutbox.GetID, OEAPIMessage.GetID)
It works fine with a small problem.
The mail appears twice in outbox. When the mail have been sent, in
outbox remains one copy of the mail.