getting information of the NEW mails not the one i am standing on. 
Author Message
 getting information of the NEW mails not the one i am standing on.

Hello,
I am trying to get different information (like sender's adress,body
text,subject , save attachments ) from each NEW mail that comes in.
Through the newsgroup i found already to get this information but i have
just one problem.

It always shows the information of the mail i am standing on on this moment,
not the information of the NEW mail, although it is in the event
"application.newmail".

it pops up on this event but shows the info of the mail where i am standing
on.So  i have to make the new incoming mail as the active one. How ?

What happens when +- 5 mails comes in at the same time.



Sat, 31 Jul 2004 03:15:37 GMT  
 getting information of the NEW mails not the one i am standing on.
1) You can use Items.ItemAdd instead of Application.NewMail.  This is nicely
documented in the Outlook VBA help.  ItemAdd receives the added item as an
argument.

2) Outlook Redemption (http://www.dimastr.com/redemption/) supplies a
NewMail event that receives the newly received message as an argument.

HTH,

D


| Hello,
| I am trying to get different information (like sender's adress,body
| text,subject , save attachments ) from each NEW mail that comes in.
| Through the newsgroup i found already to get this information but i have
| just one problem.
|
| It always shows the information of the mail i am standing on on this
moment,
| not the information of the NEW mail, although it is in the event
| "application.newmail".
|
| it pops up on this event but shows the info of the mail where i am
standing
| on.So  i have to make the new incoming mail as the active one. How ?
|
| What happens when +- 5 mails comes in at the same time.
|
|
|



Sat, 31 Jul 2004 04:04:11 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. No one has gotten back to me on this yet so I am reposting

2. Getting User Information from existing Mail Session in MAPI

3. mail to multiple ppl with each one getting only his name in the To field

4. Getting new mail

5. Outlook 98 Automation - Getting NEW mail

6. I am trying to update a record, i am not using data control

7. I am trying to update a record, i am not using data control

8. Template (Doc_New) not getting called w/ new doc - Word 2k

9. VB.NET - New Project - Form1.VB - ERROR: EnvDTR, or one of its dependencies, was not found

10. Stand alone crystal 9.x vs included one for .NET

11. New WWW site for lots of new information

12. Getting data values to CR from variable arrays and stand alone variables in VB

 

 
Powered by phpBB® Forum Software