Could not send message using @title to user ID 1

Created on 12 January 2018, over 6 years ago
Updated 24 June 2024, 1 day ago

Error when trying to send message in email after creating a basic page content.

Type	message_notify
Date	Friday, January 12, 2018 - 02:30
User	admin
Location	http://localhost:8080/node/add/page
Referrer	http://localhost:8080/node/add/page
Message	Could not send message using @title to user ID 1.
Severity	Error
Hostname	172.18.0.1

And another error message:

Type	mail
Date	Friday, January 12, 2018 - 02:30
User	admin
Location	http://localhost:8080/node/add/page
Referrer	http://localhost:8080/node/add/page
Message	Error sending email (from Site-Install <johnreytanquinco@gmail.com> to johnreytanquinco@gmail.com with reply-to not set).
Severity	Error
Hostname	172.18.0.1
Operations	
πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡΅πŸ‡­Philippines johnreytanquinco

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    message is still wrong as the user is not the user it's being sent to

    In message_subscribe, the code clones the message, sets the clone's owner to the recipient, and sends the clone. See Drupal\message_subscribe\Subscribers::sendMessage(). There may be other use cases where it doesn't work this way.

    In any case, this is a separate issue from whether the title is appearing properly.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 5.7
    last update 1 day ago
    Patch Failed to Apply
  • πŸ‡΅πŸ‡±Poland robert.kandzia

    Hi! I had the same message in my app. In my case, I send emails to a queue.

    I analyzed the classes MessageNotifierBase and Email code for the send(), deliver() and postSend() methods. I reached the place that returns boolean - this is the deliver() method. It seems to me that a value should be passed in the $result['result'] parameter, where it returns TRUE, FALSE or NULL. And there is an isset() check that returns TRUE or FALSE.

    In my case $result['result'] returns NULL because the message is queued (not sent immediately). So in postSend() is passed NULL and it does not enter the condition ($result === FALSE).

    This should solve the problem of sending emails when using a queue, e.g. queue_mail module.

Production build 0.69.0 2024