Unable to send email. Contact the site administrator if the problem persists.

Created on 27 June 2023, over 1 year ago
Updated 16 April 2024, 7 months ago

Problem/Motivation

I'm on Drupal 9.5.3. with Mail System 8.x-4.4 and Mime Mail 8.x-1.0-alpha5

When I'm trying to send the email using Mimemail example module
admin/config/system/mimemail/mimemail_example
this error appears:

Unable to send email. Contact the site administrator if the problem persists.
There was a problem sending your message and it was not sent.

Checked admin/reports/maillog - no messages here.

In dblog:
Error sending email (from name <id@server.org> to name@gmail.com with reply-to not set).

Default Mail System is set to Mime Mail mailer (both sender and formatter)

How could I find the log of "real" Mime mail errors to find what is preventing emails to be sent?

Steps to reproduce

Install the Mime mail example module, enable and send test mail from this menu admin/config/system/mimemail/mimemail_example

Proposed resolution

Provide more detailed info in dblog.

My setup:

Drupal 9.5.3
nginx/1.22.1
php 8.1.14
10.3.38-MariaDB-0ubuntu0.20.04.1
πŸ’¬ Support request
Status

Closed: cannot reproduce

Component

Code

Created by

πŸ‡¬πŸ‡ͺGeorgia almador

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @almador
  • πŸ‡¬πŸ‡ͺGeorgia almador

    I'm on Drupal 9.5.3. with Mail System 8.x-4.4 and Mime Mail 8.x-1.0-alpha5

    When I'm trying to send the email using Mimemail example module
    admin/config/system/mimemail/mimemail_example
    this error appears:
    Unable to send email. Contact the site administrator if the problem persists.

    Checked admin/reports/maillog - no messages here.

    In dblog:
    Error sending email (from name <id@server.org> to name@gmail.com with reply-to not set).

    Default Mail System is set to Mime Mail mailer (both sender and formatter)

    How could I find the log of "real" Mime mail errors to find what is preventing emails to be sent?

    Checked my server /var/log - can't find anything related to mail or postfix, I think this AWS server.

  • πŸ‡¬πŸ‡ͺGeorgia almador

    I'm on Drupal 9.5.3. with Mail System 8.x-4.4 and Mime Mail 8.x-1.0-alpha5

    When I'm trying to send the email using Mimemail example module
    admin/config/system/mimemail/mimemail_example
    this error appears:
    Unable to send email. Contact the site administrator if the problem persists.

    Checked admin/reports/maillog - no messages here.

    In dblog:
    Error sending email (from name to name@gmail.com with reply-to not set).

    Default Mail System is set to Mime Mail mailer (both sender and formatter)

    How could I find the log of "real" Mime mail errors to find what is preventing emails to be sent?

  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia
  • πŸ‡΅πŸ‡±Poland Krzysztof DomaΕ„ski Poland

    I have the same problem after changing to 8.x-1.0-alpha5. Drupal core 10.

  • Β‘Hi!

    If you are using smtp module too and you check the _smtp_mailer_send function in smtp.module and debug it by dpm using devel module, and get in the Sender variable the problem is because before to send the mail the Sender has <>, so you need to delete the <> and de email will be send ok.

  • Status changed to Postponed: needs info over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    This queue is for the Mime Mail module.

    I don't have either the time or the inclination to provide general support to all Drupal users for all email-related issues.

    The error message "Unable to send email. Contact the site administrator if the problem persists." comes from core Drupal, and in general this means that your server is not set up to send mail. It could be your PHP configuration, your Drupal configuration, your server configuration, etc.

    But this does not imply that it is a Mime Mail problem.

    Please do your homework and search for this issue to find out how to resolve it. If your Drupal site can send mail successfully under normal conditions but not with Mime Mail enabled, then it *may* be a problem with Mime Mail. But your search should tell you how to find the error messages and those messages will tell you exactly what is going wrong.

    IF you think this is a problem with Mime Mail, then post the complete raw source of the sent email along with the exact error message that tells us what part of that email source is wrong (for example, an improperly formatted "from" header, etc.). That is something we can work with and fix. But a non-specific error message from Drupal core doesn't imply that Mime Mail has a problem and doesn't give us the information needed to help you solve the problem.

  • πŸ‡¦πŸ‡ΉAustria drupalfan2

    I have the same problem after Drupal 10 uprade and using 8.x-1.0-alpha6.

    I need a solution.
    Can you help?
    Without soving this problem Mimemail is useless for Drupal 10.

  • πŸ‡§πŸ‡ͺBelgium matthiasm11

    If your using mimemail in combination with smtp, it may be worth to look into https://www.drupal.org/project/smtp/issues/3323386 πŸ› Error sending e-mail: Invalid address RTBC .

  • πŸ‡¦πŸ‡ΉAustria drupalfan2

    I am using mimemail and mailsystem without smtp.
    In Drupal 9 it works without problems.

  • Status changed to Closed: cannot reproduce 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States tr Cascadia

    The requested information has not been provided.

Production build 0.71.5 2024