Microsoft Graph API mail gets send but in spam - node.js

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.

Related

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!

Can the original source of an email detect when emails get autoforwarded?

I have a service, let's call it Trading Cool Stuff, that sends me emails on a daily basis. I set up an autoforward rule to send these emails to someone else, and that person does some NLP on those emails after reading them through gmail's API.
Can Trading Cool Stuff detect that these emails are autoforwarded?
The short answer is no, Gmail and most of the email services only track the emails until they reach the receiver's inbox. However, there is the possibility they are using some third-party software attached to the emails to track them.
Google Analytics offers the option to know when an email has been opened, but tracking the forwarding is not possible, at least from the Gmail API side.

How to create the contact of the sender automatically when the mail is received using Google Apps Script

I have signed up with Google Apps, I am using a third party SMTP Server to send the emails from the web app, Emails are reaching inbox for all the email clients (yahoo, gmail, hotmail...)
But Emails sent to my domain (mydomain.com) are reaching SPAM, This is happening only for my domain Which is google apps account domain. The solution to the problem is the sender must be in the contacts of the receiver. So its a overhead involved in adding the sender in the contacts before receiving the mail. This is not automated.
NOTE: Mails sent from <xyz#mydomain.com> to <abc#mydomain.com> are reaching SPAM. It means, Its happening only when the sender and receiver belongs to same domain.
ASSUMPTION: ALL the emails will be sent from mydomain.com .
So, I want to write a script using google apps script So that when a mail arrives from mydomain.com (having FROM address belongs to mydomain.com), The script must execute and add the senders emails address in the contacts. So it will avoid the spam rate.
I am very new to google apps script, Please help me doing this, Or if any better solution is there please feel free to post.
Vinay,
It sounds like you may have an incorrectly configured SPF record. Please see this article:
https://support.google.com/a/bin/answer.py?hl=en&answer=33786&topic=2759192&ctx=topic
Email that has a mydomain.com sender address, needs to come from a mail server listed in your SPF record or risk being sent to spam.
By chance, has Contact Sharing been enabled for your apps domain? I'm just offering this as an hunch that might help rather than a specific solution to your problem.
If this doesn't help, its a straightforward but non-trivial problem to add all your domain accounts to each others contacts list (and keeping it synced over time), but you'll be leaning heavily on a version of the Contacts API rather than plain Apps Script because the Contacts service only operates on the contacts of the user executing your script.

how to embedding outlook to sharepoint

Is there a method of embedding SharePoint to accept and send emails
I have a SharePoint website but the clients that i have are not fond of using this to communicate with the development team, but rather they would like to use emails, is there any method that i could use in order for me to allow the client team to use emails as a method of communication to the site and then i reply on the share point site and they get the email,
I think SharePoint Site Mailboxes could assist with this requirement. The White Paper will assist with your understanding of Site Mailboxes, their benefit and limitations. The easiest way to test them out is to sign up for an Office 365 Trial (as all the configuration has been performed for you).
Hope it helps.
Note: I'm directly connected with OnePlaceMail who is mentioned in the White Paper.
You could do this with two different features:
from e-mail to SharePoint: enable inbound e-mail in the list, and make sure you have the correct columns the e-mail will populate (for example the e-mail body will go in the Body column)
from SharePoint to e-mail: you can either used an "Assigned To" field (the assignee will receive the notification) or subscribe your users to alerts

Mass Emails Getting Rejected by Google

I need help automating mass emails I'm sending daily.
I'm trying to send out automated mass emails through a Gmail account (My Business uses Google Apps). I built a Java program that allows me to enter my credentials (gmail username & password), Subject Line, Email List, and enter is a body template. The program then sends out emails one at a time to each of the contacts which are in a comma delimited list. This isn't spam as I'm getting the users to submit their email address.
I got this Mail Delivery Message today: "Technical details of permanent failure: Message rejected." I read that Google will only allow a maximum of 100 recipients to any message through its smtp gateway - and there's a maximum of 500 messages in any 24 hr period.
I need a new strategy. How do I build a program to automate sending of ~100-200 emails a day? Do I need to be buying IP's, SMTP Servers, write a new PHP application? I need a place to start because this is out of my scope.
Gmail is not designed for email marketing as you have seen. In the past I have used a Google App Engine account for sending tens to hundreds of thousands of emails (because that was where the domain was managed), but that can be a pain to manage.
You could consider using a service that specializes in email marketing. I have heard good things about Campaign Monitor and MailChimp. Plus MailChimp can integrate into Google Apps.
We use www.authsmtp.com but I was looking at switching to Google when we switch to Google Apps in the near future. I'll have to drill in a bit more. IN the meantime, give authsmtp a try.
Google specifically rejects this type of behavior/use of their system. https://support.google.com/mail/bin/answer.py?hl=en&answer=69585
I would suggest trying a system that is built for this type of activity such as MailChimp or Aweber.

Resources