How can I automate sending emails through M365 without using Graph API?

0
0
Asked By ChillVibes_23 On

I've been generating weekly reports in a Node.js application and sending them manually to about 30 recipients. I want to automate this process using M365, but my IT department is reluctant to allow the use of Graph API because they find it confusing and a potential security risk. I've managed to make the application create email drafts through Outlook via command line, but I still have to manually press send for each email. Is there a way to automate sending these emails without needing IT's approval?

3 Answers

Answered By FrustratedAdmin_55 On

Why not just send the email details to your IT team and ask them to send the emails manually? It might speed things up. Also, it’s amusing how long some teams stay stuck in outdated practices. Ever feel like they're just justifying their jobs? Just like draining the sea, they think closing access is better for security!

Realist_34 -

For sure! They'll probably end up spending ages manually sending emails and then billing you for that time. It's a lose-lose battle sometimes.

Answered By NodeNerd_42 On

Sticking to Outlook CLI hacks sounds rough. If SMTP is open, consider using Nodemailer or a similar library. Yeah, Graph is the gold standard, but sometimes IT blocks stuff just because it sounds too complicated.

Answered By TechieGuru_99 On

If you're thinking about automation, just keep in mind that using an application to authenticate can be risky in terms of permissions. The mail.send permission could allow the app to send emails on behalf of any user, which poses a security concern. Make sure you're aware of that if you go down that route!

ScopedOut_88 -

Definitely! You can use application policies in Exchange to fine-tune the permissions for what your app can do.

SecurityWatcher_77 -

You can limit permissions through Exchange to make it safer. Just check out the documentation on application RBAC.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.