KeithWilliams
Registered User.
- Local time
- Today, 20:21
- Joined
- Feb 9, 2004
- Messages
- 137
Hi,
I am sending an email generated from within my application. I want to allow the user to Preview it, and for the application to know whether or not they clicked Send. The code snippet is:
The mail item is displayed, but the Modal = True argument does not work as I would expect. The code continues and evaluates argMailItem.Sent before the user sends or closes the message. I can fix this by adding a MsgBox line after the Display call. This stops the code proceeding until the user has responded to the previewed mail item, and then displays the messagebox. But this is unsatisfactory because it will slow the user down.
Please let me know how I can check whether the user sent the message or not. Also, why does argMailItem.Display Modal=True not stop the subsequent code from running?
Thanks,
Keith.
I am sending an email generated from within my application. I want to allow the user to Preview it, and for the application to know whether or not they clicked Send. The code snippet is:
Code:
argMailItem.Display True
'Verify that the item was sent (by the user).
On Error Resume Next
boolMailSent = argMailItem.Sent
The mail item is displayed, but the Modal = True argument does not work as I would expect. The code continues and evaluates argMailItem.Sent before the user sends or closes the message. I can fix this by adding a MsgBox line after the Display call. This stops the code proceeding until the user has responded to the previewed mail item, and then displays the messagebox. But this is unsatisfactory because it will slow the user down.
Please let me know how I can check whether the user sent the message or not. Also, why does argMailItem.Display Modal=True not stop the subsequent code from running?
Thanks,
Keith.