Description
Describe the bug
Upon installation of the UIBuilder to a brand new 15.1.2 project with SMTP credentials configured in appsettings.json, SMTP functionality fails to work. Inviting a user to the backoffice produces a fatal server error. After creating a basic logging service that grabs the SMTP Port from the GlobalSettings object, It appears the port is being overridden and set to 0, as show in the screenshot below.
Steps To Reproduce
Steps to reproduce the behavior:
- Install a new Umbraco Project.
- Add valid SMTP credentials to appsettings.json under Umbraco:CMS:Global.
- Install Umbraco UI Builder.
- Log into the backoffice and go to the users tab.
- Send an invite to join the backoffice.
- See that the screen freezes on "Send Invite" then produces a fatal server error.
Expected behavior
The invite email goes through to the user without any errors.
Screenshots
Environment (please complete the following information):
- Server OS: Windows 11, Local Machine
- Umbraco 15.2.1
-Umbraco UI Builder 15.0.3
Additional context
I've been able to work around this by manually setting the port to 587.
public void Configure(GlobalSettings options) {
if (options.Smtp == null) {
return;
}
options.Smtp.Port = 587;
}
This item has been added to our backlog AB#49051