how to check To email is inside or outside orgnization? - outlook

How i can check Email address is inside or outside organization in outlook add-ins is there any build in function for that?
I tried to use domain check but what if the organization have multi emails?

You can try this API to know the recipient type. The recipient type would be of ExternalUser if the email id is not present on the exchange server.
https://learn.microsoft.com/en-us/javascript/api/outlook/office.mailboxenums.recipienttype?view=outlook-js-preview

Related

Outlook Exchange change email from name base on send

Is it possible to change the From Name of an email (not the sending address) when sending an email from Outlook Exchange?
Is there any add-in that can help us achieve this?
I can see with Exchange only admin can change the sending from name. Is there an alternative?
In general, you can't do that out of the box. The latest version of hosted (M365) Exchange allows to configure a mailbox to send as one of its proxy SMTP addresses, but the sender display name will still be the same.
You can try to use an addin like Proxy Manager (I am its author) - besides allowing to send through any of the mailbox proxy addresses, it also allows an end-user to change the sender display name.

Logic Apps Email Trigger - Get original Alias

Found a very similar question here: Email aliases not returned as "To" address in logic app
TLDR: From within a logic app "When a new email arrives" trigger, How do I get the original alias that the email was sent to?
I have a logic app that creates a ticket based off an email sent to an outlook box. Now I want to be able to choose aspects of the ticket based off of whether or not the email was sent to the mailbox itself or an alias of the mailbox. The problem I'm having is that by the time logic apps gets a hold of the email, the alias address has already been replaced with the actual box's address ("alias1#place.com" -> "actualbox#place.com").
The actual mail in the inbox has the original email's alias information in the headers, but I can only get them by looking at the properties in outlook. I've tried to get the original "To" internetheader information both within logic apps (by exporting the email to blob storage and looking at headers there) and with the Microsoft Graph API. Sadly, the email exported by logic apps doesn't have the alias information and Graph API has pretty much every header but "To". At least one other person has lamented the lack of To
That said, the actual email still has the original alias information. Can someone help me get that information in logic apps without jumping through too many hoops? A many hoop solution is welcome if none other can be found though.
Use the Export email (V2) action from the Office 365 Outlook connector. This will give you the full message with original headers (including the actual To address)!
The flow here is, trigger on the incoming email, as you already are, then add the export email action providing the message id from that trigger to pull this specific email.
From there, you you'll have one big "body" property which you'll need to interrogate to find the To address.
Caveat on this though, it doesn't work when emails are sent between mailboxes in the same Office 365 tenant. Exchange Online will "helpfully" go, "I know that address... this is the address you wanted!"
What API are you using? In Outlook Object Model / MAPI / EWS, you need to retrieve the PR_TRANSPORT_MESSAGE_HEADERS MAPI property (DASL name http://schemas.microsoft.com/mapi/proptag/0x007D001F)
We arrived at a many hoop solution.
The "Primary" email box now has some rules that look at the internet headers mentioned above (Message -> Properties -> look for 'To:').
If it finds an alias there, it will put the email in a corresponding folder for each alias.
Then we have logic apps listening to each of the alias folders which will then send the email's information to the _Core logic app that does the actual processing.

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.

microsoft outlook how to send an email from an email group which I belong to?

I belong to a email group in the company I work for, such as for example, researchteam#company.com. My personal email is raulmercado#company.com. I want to send emails from researchteam#company.com instead of raulmercado#company.com. I'm using Microsoft Outlook and Exchange as a Email Server.
Thanks for your help!
If you using Outlook 2010 then you could try MailItem.SendUsingAccount property.
Here is an example
Exchange always sends out all emails coming from the default email address. And for each Exchange mailbox this default address is fixed and can not be changed in Outlook. You can use one of two options:
You can create an additional mailbox in Exchange for the second address (as the default email there of course) and then give your normal account "Send-As" rights for that new account. Then you can switch on the "FROM" field in Outlook (right-click options > Show Fields > From) and use that field to select the account you want to send from. In Outlook 2013 you can also just connect to the additional Exchange account and might get slighly easier switching.
You can use a 3rd party tool like ChangeSender (http://www.servolutions.com/changesender.htm) to get automatic switching of the accounts when you answer email (answered automatically with the account the email was received under).
Hope this helps - Claus

tfs emailing problem

I want to send an email automatically when I assigned a task to a person in team foundation server.
how can i do?
Either setup an alert for every single person in your team. It is not possible to use a field in the work item to define the recipient of the e-mail. It is not possible to use a smtp server that needs authorization.
Another option is to create your own action to send the email

Resources