O
Outlook Worm
Hi,
I am using following code to save a form with its data to Sent folder.
Set nmsName = Application.GetNamespace("MAPI")
Set mpiFolder = nmsName.GetDefaultFolder(5)
Set newMessage = mpiFolder.Items.Add("IPM.Note.test")
newMessage.MessageClass="IPM.Note.test"
newMessage.Subject = "test Subject"
Set rcpt = newMessage.Recipients.Add("(e-mail address removed)")
rcpt.Resolve
If rcpt.Resolved Then
rcpt.Type = 1
End If
Set rcpt = Nothing
Set newMessage = Nothing
But it always gets to Drafts Folder. Please let me know what is wrong i
am doing ?
Khan G
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
I am using following code to save a form with its data to Sent folder.
Set nmsName = Application.GetNamespace("MAPI")
Set mpiFolder = nmsName.GetDefaultFolder(5)
Set newMessage = mpiFolder.Items.Add("IPM.Note.test")
newMessage.MessageClass="IPM.Note.test"
newMessage.Subject = "test Subject"
Set rcpt = newMessage.Recipients.Add("(e-mail address removed)")
rcpt.Resolve
If rcpt.Resolved Then
rcpt.Type = 1
End If
Set rcpt = Nothing
Set newMessage = Nothing
But it always gets to Drafts Folder. Please let me know what is wrong i
am doing ?
Khan G
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!