About the last questionm with outlook....
I need a method to move all email sended with code in a dir of my Outlook...
Example:
After the .send command move the email into a SERVIZIO insteda to the default dir of Otulook "Mail Sended".
Need a method to check email returned...
-
- PlatinumLounger
- Posts: 4372
- Joined: 26 Apr 2010, 17:36
-
- Administrator
- Posts: 78631
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Need a method to check email returned...
You could create a rule in Outlook to move sent messages to a folder.
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4372
- Joined: 26 Apr 2010, 17:36
Re: Need a method to check email returned...
ok...HansV wrote:You could create a rule in Outlook to move sent messages to a folder.
But really my prob is:
I send email from vba code, make a rule to save in SRVIZIO, when send, instead to save to defualt in POSTA INVIATA.
I need to check if the same email i have sended via code is possible to match if a user have reply is in interval of 2 days from the first eamil?
Example:
I send eamil via code 24/04/2012 (that via rule go in SERVIZIO).
The user send me a note with a reply from original (i make a rule to save in SERVIZIO)
Match the first eamail, via code, and reply the intervall is 2 day "ok", the reply from user is arround 2 day allert!
With code is possible if i run at every day?
In effect when code send email attach a similar "Ticket"... and if the origianl ticcke is matched ...
-
- Administrator
- Posts: 78631
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Need a method to check email returned...
That's difficult: you can try to match messages by their subject, but
- If you send several messages with the same subject, you can't tell which reply belongs to which message.
- The other person can change the subject of the reply.
- If you send several messages with the same subject, you can't tell which reply belongs to which message.
- The other person can change the subject of the reply.
Best wishes,
Hans
Hans
-
- PlatinumLounger
- Posts: 4372
- Joined: 26 Apr 2010, 17:36
Re: Need a method to check email returned...
Ok...HansV wrote:That's difficult: you can try to match messages by their subject, but
- If you send several messages with the same subject, you can't tell which reply belongs to which message.
- The other person can change the subject of the reply.
But in the internal of message not exists a distinguisch code for each email?
and if i insert an numeric unambiguous index subject and impose the user to no modify tath?
-
- Administrator
- Posts: 78631
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Need a method to check email returned...
I don't think there is a unique identifier that links a reply to the original message.
A unique number in the subject or in the body of the message might help, but I have no experience with that.
A unique number in the subject or in the body of the message might help, but I have no experience with that.
Best wishes,
Hans
Hans
-
- Administrator
- Posts: 12629
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe
Re: Need a method to check email returned...
You should be able to use code like this to get the conversation ID of a MAPI message. This can be used to associate an email and all its replies.
StuartR
-
- PlatinumLounger
- Posts: 4372
- Joined: 26 Apr 2010, 17:36
Re: Need a method to check email returned...
Is C# language?StuartR wrote:You should be able to use code like this to get the conversation ID of a MAPI message. This can be used to associate an email and all its replies.
i need in vb6 or vba
-
- Administrator
- Posts: 12629
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe
Re: Need a method to check email returned...
In your VBA code you can have a variable called message that points to a MAPI message, and then use the value of message.ConversationIndex to identify the conversation
StuartR
-
- PlatinumLounger
- Posts: 4372
- Joined: 26 Apr 2010, 17:36
Re: Need a method to check email returned...
Abou my question ... i googling and found only thsi item property...StuartR wrote:In your VBA code you can have a variable called message that points to a MAPI message, and then use the value of message.ConversationIndex to identify the conversation
Code: Select all
Debug.Print .Items(I).ConversationIndex
Debug.Print .Items(I).EntryID
Debug.Print .Items(I).ReceivedTime
Debug.Print .Items(I).CreationTime
Debug.Print .Items(I).CreationTime
Debug.Print .Items(I).SentOn
Debug.Print .Items(I).Reply
Tks.
-
- Administrator
- Posts: 78631
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Need a method to check email returned...
Best wishes,
Hans
Hans