I have just completed reading received and sent emails using c# console application well that was easy part now the problem is I wanted to know is there a way of linking a received email to its replied/sent email like lets say i create a streamwriter and I write the contents that I need from the received email and the contents from the replied/sent email. How would I then go about knowing the received email to its replied/sent email? How would I link them? Uniquely differentiate from the tons of email?
Related
I have been trying to figure out how to send an email from the users email for this C# application that is being sent to my company's venders. it creates a unique xml file for the users to send our company. the users email is the determining factor if the xml file gets in our system and tells us where it goes.
I tried to use the mailto but that won't allow attachments to be passed through.
I am at a bit of a loss here.
I am reading mails using Gmail API, where I could successfully download the mails to my system. The idea is to navigate through all the label and download the mails, but that is resulting in duplicate mail downloading, as a single mail can belong to different label.
I tried looking up for label $All to get unique mails but i guess All Mail Label is not supported in latest Gmail API. Is there a way to read unique mails in gmail?
Synchronizing the mailbox can be done using Gmail Synchronization guide:
https://developers.google.com/gmail/api/guides/sync
Use history.list() method of Gmail API with Label ID filter and check for 'messagesAdded' section for Message IDs. You will not get the message body, only IDs, and subsequently have to call message.get() with received Message IDs to get message body.
If a message has multiple labels, history.list() will give you messages directly received in a particular label, hence you will not get the same message twice if you call history.list() with different label IDs.
You can also avoid duplicate messages by handling them in your application by storing each message ID in a cache store such as memcache or an in-memory hash table to avoid processing duplicate messages.
In my WinRT app I need to send email to multiple recipients with html body.
I have 2 Ideas (both don't works):
mailto: (doesn't work with html body SO question)
WinRT sharing (can't set recipients directly)
My question: Is this possible to send one email to multiple recipients with html body in WinRT (c#)?
No, it is not possible to send to multiple recipients with an HTML body.
mailto issues
cannot set address
Instead, you might want to consider using an email service to send the email on behalf of the end user (from a general account shared by your application users).
i have five user using outlook email client. Each of them receiving mails from a email marketing. i need to get all the unique mails from all my five user. i used the following,
Message-ID of outlook email header.
if a same mail received to same user, then Message-ID is same. so that i can able to eliminate the duplicate mails.
if a same mail received to different user, then Message-ID is not same. so that i can able to eliminate the duplicate mails.
is there any better way to eliminate the duplicate mail from different user
As far as I know the message ID is exactly what you cannot use. It is always different. Check the properties of the emails and find similarities and check these. The first is going to be the From then Subject then maybe a part of the body.
Does gmail preserve x-headers in email replies?
I'm developing an application which threads emails and email replies together using a Thread Id.
I add the header through SMTP .net library with the thread id, using the key X-ThreadId.
If I send it to a gmail account, I can see the header in there in the email source. However if I then reply to it, I want that header to be sent in the reply. It seems to drop that particular header.
Does gmail drop header information in the reply email? Is this a generic problem with email? If so, how do I get round this problem?
I can confirm that Gmail does not add X- headers to the new email when you hit reply button.