This might be a very basic question but there seem to be not one obvious answer.
Context: we were using Send Exchange Mail Message in the past with Basic Authentication (username/password) but this has been deprecated now. We then used Send SMTP Mail Message with basic authentication as well - but our IT don’t want to use Basic Authentication anymore plus SMTP doesn’t allow us to read/get emails.
Another option is Send Outlook Mail Message - but this requires Outlook app to be installed and account is configured on the machine where the unattended bot will run. We prefer not to have this dependency.
Next option is Integrations (Gmail and Outlook): Using this, you need to login to the account then request for admin to approve the integration. Now when that is set up, how would that go when it is deployed to a different Orchestrator tenant (deploying from Dev to Prod)? Note I’m referring to Use Outlook 365 activity with the Use Integration Service unticked.
Hi @muthuerd, thanks for your suggestion. This is a good approach however it’s a lot complex compared to just using an activity. In addition, if we want the email to come from a specific user, we have to setup the Graph API permission as delegated permission, correct? And with delegated permission, we have to maintain a refresh token or create a workflow that generate the code to be able to get the refresh token and access token. That whole config and token handling makes this complex. Happy to hear your thoughts.
Thanks for all your inputs. So far, I think the best way (although it is relative) to send an email is using the integration service. That is in terms of its flexibility and ease of setup. Will have to wait and see how it performs in Production scenario.