SMTP Auth Check

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • enable.services
    Junior Member
    • Apr 2025
    • 12

    #1

    SMTP Auth Check

    Hello, there seems to be an issue when setting up personal email accounts.


    Issue:
    When you set up a personal email account and configure the SMTP settings to not have an Auth. Espo seems to still check for Auth Username. This then causes a 500 Error.

    Steps to replicate:
    Login as any user
    Create personal email account
    In the SMTP section, fill in everything and don't tick Auth
    Save the record

    Expected Result:
    Being able to send out an email without issue

    Actual Result:
    500 error appears when trying to send

    Logs:
    [2026-01-27 10:51:51] CRITICAL: (0) SmtpHandler: No 'smtpUsername'. :: POST /Email/sendTest :: /var/www/application/[Redacted]/custom/Espo/Modules/Outlook/Core/Outlook/SmtpGroupHandler.php(52)

    Workaround:
    Edit the DB and manually put a smtp_username in for users this fixes the 500 error since there seems to be a check if it's blank or not
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9605

    #2
    Do you have Outlook connected? It's not possible to not to use authentication with Outlook.

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 9605

      #3
      If you don't use Outlook, set 'smtp_handler' and 'imap_handler' to null in the email account record. They are meant to be erased on disconnect.

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9605

        #4
        If you uninstalled the Outlook extension with some email accounts connected, you need either install it back and disconnect, or create a new email account, or set handlers to null manually.

        Comment

        Working...