Which endpoint will reveal the Outlook email address using Microsoft Graph API? - outlook

After OAuth and receiving the access token, I'm able to query the endpoint https://graph.microsoft.com/v1.0/me to get the owner details. However, the email address returned in the response is the email address attached to the resource owner (userPrincipalName), not necessarily the email address of the owner's outlook account. For example, if I then hit the https://graph.microsoft.com/v1.0/me/messages endpoint, I can see the "from" email address is the email address that I actually want (in the Sent folder), or the "to" address in other folders, but the owner details email address (userPrincipalName) is different. The userPrincipalName is the sign-in email address, but in this case, the Outlook email address is a different email address. My question: is there an endpoint where I can get the email address (or addresses) used in Outlook rather than the email address of the owner?

Related

Can noreply email address get replies?

I created a bounced mail tracking system in Laravel. It works like this:
Every time an outgoing email is bounced, mailer-daemon from google notifies the source (i.e. replies) about the bounced email.
I tracked my inbox using Weblex-imap and hence was able to track all the bounced emails.
The problem is, now what if I have to set up a noreply email address. Can it still get replies from mailer-daemon about the bounced emails? Or will the inbox be empty and my system won't work?

Use multiple sender address in Laravel Email

How to use different sender address in sending emails in Laravel. What i want is to send some emails from one email id and some mails from second email id but gmail is picking up every time the configuration done in env not from mailable class.
You can't replace sender with Google SMTP service.
Google rewrites the From and Reply-To headers in messages you send via it's SMTP service to values which relate to your gmail account.
GMail does allow sending via different addresses or alias but this is for sending via the GMail web app, see Here
If you own the domain you are supposedly sending from, use the Gmail for Domains , and setup a "myapp#mydomain.com" account.
Or, use another SMTP provider

Outlook calendar replaces plus sign in meeting organizer email address with spaces

I receive calendar invite to my outlook desktop client from one of the applications I use and the organizer email in the meeting invite was "scheduling-assistant+A6B890782A404B77#XXXXXX.com" (Masking the domain with X). When I tried to accept the meeting invite, I received the following exception
Delivery has failed to these recipients or groups:
Scheduling Assistant
The format of the email address isn't correct. A correct address looks like this: someone#example.com. Please check the recipient's email address and try to resend the message.
More information:
scheduling-assistant A6B890782A404B77#XXXXXX.com
Remote Server returned '550 5.1.3 STOREDRV.Submit; invalid recipient address'
ORGANIZER PROPERTY IN ICS FILE
ORGANIZER;CN=Calendar
Services:mailto:scheduling-assistant+A6B890782A404B77#XXXXXX.com
If we take a look at the email address in the delivery failed mail, plus sign was removed.
I have also recently started facing this issue. I think outlook must have made some changes to how it reads the .ics file.
You need to HTTP encode the organizer's email adderss.
I use python (django), and I used django.utils.http.urlquote to encode the email address:
organizer = vCalAddress(u"mailto:{}".format(urlquote("scheduling-assistant+A6B890782A404B77#XXXXXX.com"))) #<-- This is the only difference. I have encoded the email address.
This fixed the problem for me. I have tested this in Outlook and Google calendar.
Here is my original answer.

Display sender name as set in message header, instead of full name from address book

I came across this as the only other thing I could find that resembled what I'm asking: http://office-outlook.com/outlook-forum/index.php/t/84123/
I'm sending an email through Office 365's SMTP server as a notification that a form was submitted to my company email address (me#company.com) from our company RSVP email address (rsvp#company.com). I am setting the From Name to be the full name of the person filling out the form and the reply-to email as the person's email address textbox.
Here is an example of what part of the message header might look like:
To: <me#company.com>
From: Test User <rsvp#company.com>
Reply-To: <test.user#gmail.com>
In Outlook, since rsvp#company.com is an actual mailbox within our company, it automatically displays the sender name as "RSVP" (which I suppose is what was set when the mailbox was created). Is there a way to bypass this and display the sender name in the message header instead?
No. Exchange always resolves all sender and recipient names to their primary SMTP address and default name. Just the way Exchange works.
You can extract MIME headers and modify the message sender related properties on the client side after the message is received using Extended MAPI (C++ or Delphi) or Redemption (I am its author - use RDOSession.CreateOneOffEntryID / RDOSession.GetAddressEntryFromID / set RDOMail.Sender and RDOMail.Get_SentOnBehalfOf / RDOMail.Save). Note that OOM will not let you set the sender related properties even using MailItem.PropertyAccessor.

Extracting On-behalf-of property from emails in ICC

We are enabling record management for emails.
ICC with email connections for Microsoft exchange is being used for declaring emails as records
We have a requirement for maintaining the on-behalf-of property on mails in case the mail is sent by a user whose been delegated other user's mailbox.
But available system metadata for email don't have any property for this information. Is there a way we can extract this information from emails?
In email system metadata there is a property named 'Originating User' which gives the name of the actual user who have sent the email in question.
So the 'From' property will be populated with the user on whose behalf the mail has been sent and the 'Originating User' property will be populated with actual user sending a mail.

Resources