-
Sep 12th, 2001, 04:25 PM
#1
Thread Starter
Need-a-life Member
Intercepting outgoing messages
Is there any way to get a message that would be sent (with Outlook) before it is send??
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Sep 13th, 2001, 04:18 AM
#2
Fanatic Member
You need to use the Application's "ItemSend" Event. This is an example from MSDN.
VB Code:
Private Sub myOlApp_ItemSend(ByVal Item As Object, Cancel As Boolean)
Prompt$ = "Are you sure you want to send " & Item.Subject & "?"
If MsgBox(Prompt$, vbYesNo + vbQuestion, "Sample") = vbNo Then
Cancel = True
End If
End Sub
-
Sep 13th, 2001, 11:16 AM
#3
Thread Starter
Need-a-life Member
Yes... but I mean with Outlook. I mean, my app is not sending the email, Outlook would do it. Is there any "message" you could "read" from Outlook when the Send event is fired, and eventually, cancel this action?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Sep 13th, 2001, 11:25 AM
#4
Fanatic Member
Yes, as far as I understand it, just use
WithEvents myOlApp as Outlook.Application.
see
http://msdn.microsoft.com/library/de...Automation.asp for more details.
-
Sep 13th, 2001, 01:40 PM
#5
Thread Starter
Need-a-life Member
Excellent!! That was what I was needing!
THANKS A LOT!!
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|