Integrating with Office 365 SMTP Settings
Comments
-
I was trying to use Office 365 for my SMTP Email Server, and Im not sure if I set up my settings incorrectly in the settings.xml or something, but all of my "Send Email" steps started failing. I was using different emails for the different reports, and none of them will send out with these new settings.
I get an error like this:
STOREDRV.Submission.Exception:SendAsDeniedException.MapiExceptionSendAsDenied; Failed to process message due to a permanent exception with message Cannot submit message.
[i]edited by thecatsmeow on 3/29/2021[/i]
[i]edited by kshitij@decisions.com on 3/30/2021[/i] -
Hello,
Your settings might not be wrong actually, but you can refer to this Microsoft documentation, [url=https://support.microsoft.com/en-us/office/server-settings-you-ll-need-from-your-email-provider-c82de912-adcc-4787-8283-45a1161f3cc3]Server settings youll need from your email, provider[/url] to check. While looking for that exception, I stumbled upon this forum post, [url=https://social.technet.microsoft.com/Forums/en-US/69426f64-717d-47e0-aa1b-700903ee83cc/520-storedrv-error?forum=exchangesvrsecuremessaginglegacy]5.2.0 STOREDRV Error[/url], that states that you cannot have a different "From" address email from the address used in the SMTP settings. On this Microsoft documentation, [url=https://docs.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365#limitations-of-smtp-auth-client-submission]How to set up a multifunction device or application to send email using Microsoft 365 or Office 365[/url], it also states: "You can only send from one email address unless your device can store login credentials for multiple Microsoft 365 or Office 365 mailboxes. Microsoft 365 or Office 365 imposes a limit of 30 messages sent per minute, and a limit of 10,000 recipients per day." So this appears to be more of a limitation with the email server you are choosing to use rather than with Decisions being configured improperly.
As a possible work around, you can try turning on Plus Addressing on your email server and follow the instructions here on this Microsoft documentation, [url=https://docs.microsoft.com/en-us/exchange/recipients-in-exchange-online/plus-addressing-in-exchange-online]Plus Addressing in Exchange Online[/url]. Its turned off by default, but with it turned on, you can use the one email address and append a plus mark and a tag for different things so you can differentiate where it is coming from, such as sampleemail+noreply@email.com, sampleemail+admin@email.com, sampleemail+hr@email.com, etc.
If you prefer to not use that and want to use an entirely different email address altogether, you can make a custom subflow with different "Send Email" steps inside that have different SMTP settings per step for each account. You can pass in the details for each email along with an identifier so theres a logic to know what "Send Email" step should be chosen. Like if you pass in "reports" then the reports version of the "Send Email" step should be chosen where things come from reports@email.com, and if you pass in "admin" then the admin version of the "Send Email" step is chosen where each email is sent from admin@email.com.
Hope you find this helpful!
-
That is very helpful! thank you
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions