Confirming Outlook sent a message

wjoc1

Registered User.
Local time
Today, 20:42
Joined
Jul 25, 2002
Messages
117
Hi,

I have Access calling up an new outlook message. However I need to know whether the user decides to send this message or not. I know mailItem has a .sent property but I cannot get this to work. Here's a little simplified excerpt from my code.

Code:
oEmail.Subject = "Some subject"

oEmail.Body  = "Content..."

oEmail.Display

if oEmail.Sent Then
   MsgBox "Message Sent Successfully"
Else
   MsgBox "Message Not Sent"
End If

The thoery seems to be right and the msgbox's do not appear until the e-mail has been sent/cancelled so it's not jumping the gun so to speak. oEmail.Sent just seems to return false all the time whether I send the message or not.

What am I doing wrong ?
Liam
 

Users who are viewing this thread

Back
Top Bottom