Outlook mail authentication - outlook-web-addins

I have created an REST API and it will be consumed from an outlook web mail addins which I also build. Now, I want to make sure that only those who logged-in in Outlook web mail can get access to my API.
So my question now, is how to get the active user in outlook web mail? Is that possible?

You can authenticate your user for service you have implemented. There are several ways of doing this, please read here: https://learn.microsoft.com/en-us/office/dev/add-ins/outlook/authentication.
Please read about Addin API 'getUserIdentityTokenAsync' which looks like what you are looking for in this case.

Related

API call for "Check mail from other accounts > Check mail now"?

Is there an Gmail API call that corresponds to "Check mail from other accounts > Check mail now"?
Neither Gmail API nor Apps Script's GmailApp have a way to force to update the messages from the other accounts pulled with POP3.
There may be an easy way to update those accounts from the app. Asking how to do this may bring people that knows how to do so and may be able to help you (but that know nothing about Gmail API) :)
As a side note, if you don't find a way of doing it, you may request Google to implement a refresh method in their Gmail API.
References
Gmail API resource summary (Gmail API reference)
Class GmailApp (Apps Script reference)
Getting started (Google Issue Tracker documentation)

Send an email using office-js in Outlook add-in

I'm building an Outlook add-in and I'd like to send an email from the add-in itself,
Is it possible with office-js?
My goal is to allow the users select a person from a list on the add-in, when selected I want to send an email to that person, by click.
I can see that it has MessageCompose interface but it seems it allows only to edit the content of the email.
https://learn.microsoft.com/en-us/javascript/api/outlook?view=outlook-js-1.8
I know that Yesware have an Outlook add-in that sends an email by click and I'm trying to accomplish something similar.
Thank you
You cannot send mail directly from Outlook Add-in as Outlook doesn't provide this permission. The maximum you can edit the mail content and mail have to be triggered by the User itself.
If you want to send Mail then you have to implement Mail sending service or better use API's of popular providers like MailChimp or Sendgrid

Using Azure SendGrid to send emails from my work email to other work emails

I set up an Azure SendGrid resource in my company's Azure subscription, got my API key and wrote a C# script to send emails. It works, but the emails go to spam with an SCL=6. I expect this is because I am doing no domain authentication. (Please bear with me as I try to describe my situation, I'm still learning a lot about all this). I am sending the emails through my work/enterprise email account (XYZ#company.com) and they are going to other enterprise accounts on the same domain (company.com). My company is a large tech company with a very well known domain. I am just a user on the enterprise network as a normal vendor/employee, with this setup I don't know how I would touch DNS/SPF/DKIM options, which from what I've been reading are the main first steps to authenticate myself as the sender.
I guess my main question is: Can SendGrid be a possible solution to what I am trying to do? I want to send ~250 emails programatically, each from a template so I can substitute in recipient name and specific info, and I can do all that through C#. But is there a way I can authenticate myself so my emails do not go to spam? If not, are there alternative solutions? I'm just trying to avoid having to manually send ~250 customized template emails through Outlook.
Let me know if I need to provide more info, all answers are appreciated! Thank you!

How to use SharePoint REST API to send outlook invitation (I know how to send email)?

Thanks for helping me with this issue.
I am trying to send a calendar invitation through the SharePoint Rest API, but couldn't find any documentation about it.
I am able to use sp.utilities.utility.sendemail to send email, and I have the correct ics file as well, just not sure where to put.
Can someone please provide me with a post example of sending outlook invitation by using SharePoint REST API.
Many Thanks
This is the url for O365 calender api :
https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations
This may resolve your issue.

How to Integrate SharePoint 2007/2010 and Google Apps?

My (smaller) company has an existing Google Apps Deployment, used for E-Mail / Calendar, etc.
I'm looking into a SharePoint setup (2010 most likely). One of the best features is that new events are added to one's Outlook Calendar, e-mails can be sent automatically, etc. Naturally, this works best out-of-the-box with Exchange.
I know I can add my own OpenID login system via an OpenID provider for SharePoint and get my users into the system.
My question is, can anyone recommend the best way to go about making sure that events automatically find their way into users' calendars and e-mails on the Google Apps system?
This would enable us to deploy SharePoint without worrying about migrating our e-mail system to Exchange first (Google Apps is more cost-effective for our needs and I'm required to keep it.)
Thanks in advance for any help!
My experience has been that the Outlook integration is via the user's client not the exchange server. The exchange server isn't aware of SharePoint, at least in the scenario's I've been working with it.
I'm not familiar with Google Apps, but if your users are already in Outlook then you are probably OK. The SharePoint calendar in Outlook shows up as another calendar (not your normal Exchange related) calendar anyhow.
Email shouldn't be an issue since the SharePoint front end/web server sends the emails through whatever SMTP you tell it to.
Hope that helps.
Email won't be a problem - there's nothing exchange-specific about the alerts sent by SharePoint.
Calendars opened in outlook are not actually fully integrated with the outlook/exchange calendar. Outlook is simply able to open calendars from multiple locations for side by side display, so you may not get exactly what you are looking for even with exchange.
For google calendar integration you may find this post useful: http://community.bamboosolutions.com/blogs/mashpoint/archive/2009/01/26/how-to-render-sharepoint-list-data-from-a-google-calendar.aspx
One part of this puzzle is how to setup SharePoint outgoing email.
If you already have a smtp server then no problem - but if not you can't get SharePoint to send directly to mail.gmail.com (or whatever your domain is) as SharePoint can't supply the authentication that google demands.
The solution is to use IIS SMTP server as a relay between SharePoint and Gmail.
http://fmuntean.wordpress.com/2008/10/26/how-to-configure-iis-smtp-server-to-forward-emails-using-a-gmail-account/
We have tried Shetab SharePoint Live Authentication solution that work with other OpenID provider such as Google and yahoo too, much more customizable and interesting solution, the best of it that prevent users to enter invalid e-mails so our SharePoint alert does not send spam mails to unwanted uses. Installation are all automated
http://www.shetabtech.com/english/SharePointLiveAuth

Resources