How to get emails from only a particular email address in Outlook REST API? - outlook-restapi

I have a manual from Outlook Dev - https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations#GetMessages
But they do not tell how to get emails from one particular email address..
How can I add this filter?

You can use the following api:
https://outlook.office.com/api/v2.0/me/messages$search=%22from:testuser#testdomain.com%22")

Related

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

Microsoft Graph API mail gets send but in spam

I am a newbie to Microsoft API and was trying the Microsoft graph API Outlook for sending mail to different emails in nodejs. I tried the below example but I am able to send mail as spam.
Github sample:https://github.com/microsoftgraph/nodejs-connect-sample.
Why mail is sent to Gmail spam?
Please help. Thank u
This is not related to Graph. It's not even related to Outlook. Judging by the format of the e-mail address I'm seeing you used to send an e-mail through Microsoft Graph, you've created your Microsoft account using a different e-mail address than what Microsoft provides you by default (ex: krishna#outlook.com). Your GMail address perhaps? When you do that, Microsoft creates an internal mapping from an address that they create to the e-mail address that you provide. I'm referring to outlook_532....#outlook.com that you see in your spam marked email as the sender.
Because the formatting of this looks super weird and the spam detectors are using Machine Learning for all of the major e-mail providers, GMail's trained (and trained and trained over years) spam filters are thinking that the e-mail address looks like a spam one.
Easiest solution would be to create a new Microsoft account - using a proper mail address from outlook.com - rather than giving them an already existing (ex: gmail) one.

Send mail to Document Library in Sharepoint 2013

I have 1 document Library I want to send email with attachment to that Library.for which email Id I want to send Email.
Did you go through these links ..
Configure incoming e-mail - Central Administration
Enable and configure e-mail settings for a library
You need to enter unique name to use as part of the e-mail address in library setting.

Send email from #my-domain.com using SendGrid in Azure

I have my web app working in azure. What I would like is to be able to send emails from xxx#mydomain.com. Is that possible using SendGrid?
For example, if I use gmail's smtp, emails are sent from the email address specified in the NetworkCredentials user name, even if in the MailMessage I use a different email address.
If I use SendGrid instead, will emails come from the user name created by azure or will I be able to achieve this?
You will be able to send email from whatever address you want, just specify the correct from address (e.g. xxx#mydomain.com) when sending the email.
You will need to use what SendGrid calls "Whitelabels":
To access this page, log into https://app.sendgrid.com/ then click on Settings > Whitelabels > Domains:
SendGrid will then ask you to enter 3 CNAME records to prove that you own/ have authorised access to that domain.

How to send email from a sharepoint list

Is there a way to send an email from SharePoint by using the email addresses from a sharepoint list.
Something like sending one email to all client from a specific list and putting the addresses in the BCC field of the email.
All that in a single button that I could place in the sharepoint list header.
You could develop something like that using a custom action, but you should be familiar with SharePoint development

Resources