Skip to content

Installing UIBuilder Sets SMTP Port to 0 #127

Open
@jho-md

Description

@jho-md

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:

  1. Install a new Umbraco Project.
  2. Add valid SMTP credentials to appsettings.json under Umbraco:CMS:Global.
  3. Install Umbraco UI Builder.
  4. Log into the backoffice and go to the users tab.
  5. Send an invite to join the backoffice.
  6. 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

Image
Image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions