-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The caller of rcmail_send_mdn function doesn't accept a string as smtp_error #7475
Comments
We indeed do not support string error in all places that use deliver_message() method. This will need to be fixed. You can return an array containing 'label' and 'vars' instead, this should be supported everywhere. |
I tried but I'm not able to get it to work, when I use the array with |
Your label should be in a form of |
Thank you, it works! |
Fixed. |
I'm writing a plugin that uses the
message_before_send
hook. The plugin needs to return an internationalized error so I'm returning the error as a string. The documentation indicates it is allowed:But in the particular case that a read receipt submission fails I get a PHP warning when the error is shown:
I think the problems is that
program/steps/mail/show.inc
is not expecting the functionrcmail_send_mdn
returns an error string and it should work in the same way that rcmail_sendmail->deliver_message.The text was updated successfully, but these errors were encountered: