Exchange Web Services API Linking emails in a conversation? - c#

I'd like to be able to log a unique id from an email with a delivery receipt in a database that i can then use to link the delivery receipt email when it comes back from the recipient. I tried using the Thread-Index Internet Message Header, but I don't have access to the message headers when I initially send the email.
Is it possibe to
1. create an email.
2. add a delivery receipt
3. use a unique id from that email and store it in a database
4. search for that unique id in the delivery receipt message when it arrives.

Related

EWS some emails are missing internet message headers

I am working on a windows service that reads the inbox, archives the emails, couples the email to a ticket and put it in the database.
My problem is that we check the internetmessageheaders to see if an email is auto-submitted. But now we get an error message logged to the database every 5 seconds because the internet message headers is null.
for context the inbox is empty and it has worked before.
I did some testing and it worked fine except for 1 email i got in my test mail. It has the email headers that looks like the headers of a sent email and just like a sent email i can't get the internetmessageheaders.
Now i am left wondering if i can get the internetmessageheaders from that email or if i have to build a workaround because internetmessageheaders aren't supposed to be null on an received email

Email Auto-Replies not going to Reply-To Address

I have a web app that sends emails via smtp on behalf of the user to their customers. I am able to put the user's email in the reply-to of the email and this works for normal email use for the users. In the case the recipient has an auto-responder or the email entered was incorrect email, the auto replies go to the sender not the reply-to. The sender inbox is unmonitored.
The sender email service is using and Office365 account.
What are my options to get the auto replies and returned emails to the reply-to email?
This may be because the autoresponders don't regard their messages as replies, but rather as messages from the email system itself.
Your mail has three or four addresses related to the sender, which generally show up at the recipient as Return-Path, Sender, From and Reply-To. Return-Path is who should get error messages and other messages from the email system itself, Sender and From are the address that should be displayed as having sent the mail and Reply-To is the address to which the addressee's replies should be directed. (Sender and From are only very rarely different these days, but historically Sender might be e.g. a particular member of a team while From is the team's shared address.)
Many autoresponders respond to the address that shows up as Return-Path in the final message (it's also called the envelope from address), so your options are:
use the user's address as envelope from
set up a forwarding scheme so that autoresponses are suitably forwarded
The first is very tricky wrt. DKIM, DMARC etc, so you'll probably find the second one simpler, even though it requires you to filter spam and perhaps more.

How to provide web link of reply email in hero card

I am using Microsoft Graph API v1.0 to list all user emails in hero card with a subject, from and mail body. I added a new button named "Reply" with card action.
CardAction(ActionTypes.OpenUrl, "Reply", value: "<<Reply URL>>")
Requirement:
When I click "Reply", a new tab should open with a specific email account (Gmail, Outlook.com, Office 365 etc.) to send the reply from.
Note:
User is already authenticated with specific account in browser.
Reply To participants is optional when I click that button
I am implementing this in Bot Framework V3
Example: I logged into my web outlook account in the browser, when I click "Reply" along with previous messages email thread, it will show us to write mail body, add participants in reply to (in case if we need to add more).
So my requirement of "Reply" button in hero card should work like as example I mentioned.
Is this even possible to provide a WEB LINK for that reply button in hero card of each email? If Yes could let me know for which type of email account supports?

How to check whether user email id is existing or not using asp.net?

I have a form in my asp.net site. when user fills email id text box, I want to make sure whether that email id is valid or invalid(existing or not existing).
Ex: john#gmail.com is valid,
john#xxxyyy.com is not valid.
How to find it whether it is valid or not. please help me. I searched some stack overflow. even though I didn't get.
There is no way to for you to know if an email account actually exists other than to send an email and see what happens. A delivery failure notice might be sent, but that is not guaranteed to be sent, and even if it is, it might not be sent for days depending on how many delivery attempts are made.
You can send a verification email which contains a URL of a web service you control and passes a unique ID. The email owner clicks on the URL and is directed at your web service. You look at the unique ID and now you know the email address exists.
https://emailhunter.co/api/docs#email-verification - is a web service API to check email addresses
try to create an email id in mail server. if exist it will return an existing mail return message.
You could use the built-in Microsoft SmtpClient Class if you know the adress of your SMTP server. The Send Method returns an exception when the delivery fails. Again, this is only a suggestion and perhaps too overwhelming for what you need, but this class is rather useful in C#.
Send one link on that email address with some query string parameters and based on those parameters activate their user profile otherwise not activate..
So based on this methodology, you can verify email address is valid or not.

Display the recipient's name on an email sent via EWS

I wish to pragmatically send an email from an exchange mailbox but when viewed in sent items in outlook display the contact name rather than the email address (like it does when sending via outlook).
I have attached a one drive link with an image example below, of viewing a sent item in outlook, when sent from outlook. My pragmatically sent email needs to replicate this.
How do I send an email using EWS so that the recipients name, and not only his address is shown?
https://onedrive.live.com/redir?resid=8F8BF7DFDA3B485C!443361&authkey=!AOiPcHZJePBNmJk&v=3&ithint=photo%2cjpg
Thanks a bunch
Set the Name property for the EmailAddress you use as recipient.

Categories

Resources