Delete Email in VB

T

Tom

I want to delete a email message out of VB within Access
2002. How can it be done?

Thanks
 
M

Michael Bauer

Hi Tom,

for delting it into the DeletedItems folder just call the
MailItem.Delete method. For deleting it permanently you´d need to move
it first into the DeletedItems folder (MailItem.Move) and then call its
Delete method.
 
Top