Item has been moved or deleted

  • Thread starter Thread starter JoBless
  • Start date Start date
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
 
Back
Top