A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Retrieving the message and subject of email



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 23rd 07, 02:28 AM posted to microsoft.public.outlook.program_vba
Markus
external usenet poster
 
Posts: 28
Default Retrieving the message and subject of email

Hope someone can give me a hand with this.

I have a VB app in which I have implemented a feature to allow the user to
double click on an email address in an entryfield to open outlook and send to
that email address.

I’d like to take this another step. After they type in their email message
and subject, and click on send, the email is sent to the Outlook outbox and
ultimately to the sent folder.

I’d like to retrieve the message and subject they entered and sent, and
store this in another database. I assume I would need to continuously check
the outbox and/or the sent box for the email. But what can I use to locate
the email. I would not have the subject to search for. Is there some other
property I can use to locate this email? Is there a property value I can
assign some unique number after they double click on the entryfield, and
before they prepare the email and click on send in Outlook, that would give
me something to locate the email? Ot do I simply locate the last email sent
in the Outbox? Anyone have any code they could share for this?

Many thanks for any help or ideas on this,
Mark

Ads
  #2  
Old April 23rd 07, 05:58 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Retrieving the message and subject of email



Do you create the e-mail by code? If so then you do have a reference to it
and can receive the item's events:

Private WithEvents m_Mail as outlook.MailItem

Private Sub m_Mail_Send(Cancel As Boolean)
' get here the subject
End Sub


--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Quick-Cats - Categorize Outlook data:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Sun, 22 Apr 2007 18:28:01 -0700 schrieb Markus:

Hope someone can give me a hand with this.

I have a VB app in which I have implemented a feature to allow the user to
double click on an email address in an entryfield to open outlook and send

to
that email address.

I’d like to take this another step. After they type in their email message
and subject, and click on send, the email is sent to the Outlook outbox

and
ultimately to the sent folder.

I’d like to retrieve the message and subject they entered and sent, and
store this in another database. I assume I would need to continuously

check
the outbox and/or the sent box for the email. But what can I use to

locate
the email. I would not have the subject to search for. Is there some

other
property I can use to locate this email? Is there a property value I can
assign some unique number after they double click on the entryfield, and
before they prepare the email and click on send in Outlook, that would

give
me something to locate the email? Ot do I simply locate the last email

sent
in the Outbox? Anyone have any code they could share for this?

Many thanks for any help or ideas on this,
Mark

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieving exe file from email Jerry Bujas Outlook - General Queries 2 September 7th 06 12:20 PM
OL2003: Message List shows Message Size rather than Subject David Lipetz Outlook - General Queries 2 August 10th 06 10:29 PM
Retrieving deleted email [email protected] Outlook - General Queries 4 May 11th 06 05:47 PM
Retrieving delete email [email protected] Outlook - General Queries 0 May 10th 06 11:27 PM
How to filter email with blank subject, to, and message body ken4az Outlook - Installation 0 January 20th 06 05:27 PM


All times are GMT +1. The time now is 02:11 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.