Item has been moved or deleted

J

JoBless

Hi.

I've made a workarround for refreshing a new mailitem (after inserting a
HTMLBody. It saves the item, and closes + displays it.
This works ok. Then, if the user clicks close, I'm checking if the mailitem
is edited, if not it should be deleted (else the drafts-folder will grow).

When the user clicks send, the item_close event fires, and I get the error
'Item has been moved or deleted'.

Is there a way to check for this, cause I don't want to do anything if it
has been moved or deleted (or send). I've tried isnothing(mailitem), but the
item isn't nothing when it has been send.

Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top