-
Topic
-
Hi,
I use the following code to generate a new message, based on a original message:
sub ResendMail (Msg)
Dim objMail
Dim objNewMail
Dim objRecipientSet objMail = GroupWise.Account.MailBox.Messages.Add(“GW.MESSAGE.MAIL”, fgwDraft)
Set objRecipient = objMail.Recipients.Add(GroupWise.Account.Owner.EmailAddress,,0)With objMail
.Priority = fgwNormal
.FromText = Msg.Sender
.Subject = strPrefix & ” ” & Msg.Subject
.BodyText.PlainText = “============= Orginal Message =============” & _
vbcrlf & vbcrlf & _
Msg.BodyText
End WithSet objNewMail = objMail.Send
set objNewMail = Nothing
Set objRecipient = Nothing
Set objMail = Nothing
end sub
After sending the email there is a draft-message left in my ‘deleted-items’ box, which is really confusing doing some sorts and searches.
How can I delete this draft after sending the mail?
Thanks,
Jeroen
- You must be logged in to reply to this topic.