We tried using Outlook and MAPiEx but found it difficult to manage mailboxes due to it relying on the default outlook profile on the machine and our OU setting forcing that to be the personal email for the account the bot was using.
We switched to using POP3 for receiving email and SMTP for sending email and have found it much more stable, and significantly faster however (as mentioned my
@Andrey Kudinov) it can be harder to debug as you can't actually "see" the emails unless you have separate via outlook. Here's link to the microsoft which contains links to the documentation regarding OAuth2 authentication - ignore the reference to Feb 2020, it was postponed to October 2021 last I checked);
https://docs.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submissionSince we've got to build the OAuth2 connections to O365 anyway, I'm planning to do a full switch to MSGraph next year which should be even faster than SMTP/POP3, and have the same options as Outlook/MAPIEx.
------------------------------
John Wilding
Robotic Architect
ReAssure Ltd
Europe/London
------------------------------
Original Message:
Sent: 12-16-2021 17:09
From: Michael ONeil
Subject: Send Mail outlook or SMTP?
Yeh I agree I would much rather use something thats fast and reliable compared to outlook and use this as a last resort. I usually stick to SMTP for exception handling emails and only use outlook for get mails or reply to a specific email if thats required. @John Wilding I didnt know that about the changes to smtp I'll have a look at MS graph and see what it offers thank for the info.
------------------------------
Michael ONeil
Technical Lead developer
NTTData
Europe/London
Original Message:
Sent: 12-16-2021 14:16
From: Andrey Kudinov
Subject: Send Mail outlook or SMTP?
I'd say use Exchange Web Services if you can.
Outlook is your option if you need to read mail and can't use EWS.
SMTP is the fastest obviously, but it is only for sending mail - works fine if it is all that you need and don't care about mail ending up in Sent folder. Also harder to debug if something went wrong.
MAPIEx is terrible, keeps crashing randomly - just don't...
------------------------------
Andrey Kudinov
Project Manager
MobileTelesystems PJSC
Europe/Moscow
Original Message:
Sent: 12-16-2021 10:22
From: Michael ONeil
Subject: Send Mail outlook or SMTP?
Hi all
I was having a discussion earlier around the best approach to sending emails from digital workers. My thought is that its usually better to use SMTP for sending emails as it more reliable and doesn't require installation of outlook to do it but others tend to prefer using outlook which seems simply just because thats an application their familiar with rather than any real benefit.
What are everyone else's thoughts on which is the better approach?
------------------------------
Michael ONeil
Technical Lead developer
NTTData
Europe/London
------------------------------