Need a method to check email returned...

User avatar
sal21
PlatinumLounger
Posts: 4372
Joined: 26 Apr 2010, 17:36

Need a method to check email returned...

Post by sal21 »

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".

User avatar
HansV
Administrator
Posts: 78631
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Need a method to check email returned...

Post by HansV »

You could create a rule in Outlook to move sent messages to a folder.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4372
Joined: 26 Apr 2010, 17:36

Re: Need a method to check email returned...

Post by sal21 »

HansV wrote:You could create a rule in Outlook to move sent messages to a folder.
ok...

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 ...

User avatar
HansV
Administrator
Posts: 78631
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Need a method to check email returned...

Post by HansV »

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.
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4372
Joined: 26 Apr 2010, 17:36

Re: Need a method to check email returned...

Post by sal21 »

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.
Ok...
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?
:scratch:

User avatar
HansV
Administrator
Posts: 78631
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Need a method to check email returned...

Post by HansV »

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.
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12629
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Need a method to check email returned...

Post by StuartR »

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


User avatar
sal21
PlatinumLounger
Posts: 4372
Joined: 26 Apr 2010, 17:36

Re: Need a method to check email returned...

Post by sal21 »

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.
Is C# language?
i need in vb6 or vba :scratch:

User avatar
StuartR
Administrator
Posts: 12629
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Need a method to check email returned...

Post by StuartR »

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


User avatar
sal21
PlatinumLounger
Posts: 4372
Joined: 26 Apr 2010, 17:36

Re: Need a method to check email returned...

Post by sal21 »

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
Abou my question ... i googling and found only thsi item property...

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
Exist a list of complete prporty og outlook items, if yes where is?
Tks.

User avatar
HansV
Administrator
Posts: 78631
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Need a method to check email returned...

Post by HansV »

See:
MailItem (Outlook 2003)
MailItem (Outlook 2007)
Best wishes,
Hans