When a user changes their email address, the messaging destination address does not track. You have to change the send method in the account settings to something else, save, then change back.

IMHO the email addresses should track or messaging should always pull the account email address for any mail based messages.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tbenice’s picture

What's also not right is that the mail option test in messaging settings will send to the user's account address, but notifications messages are sent to the messaging_destinations address. There's a disconnect there someplace.

tbenice’s picture

Priority: Normal » Critical

this is a truly annoying bug. i'm changing it to urgent. not sure how to address it.

univate’s picture

Status: Active » Needs review
FileSize
7.09 KB

See attached patch for a solution.

I have added a function to update addresses in the message_destination table for any message type and then in messaging_mail, messaging_mime_mail, messaging_phpmailer & messaging_sms added function to hook into user updating these details and update these.

I haven't used another other message types, so they may need to still be updated.

univate’s picture

FileSize
5.94 KB

Here it is a normal patch as well.

univate’s picture

FileSize
4.29 KB

Actually seems the fix is a little simpler then I first thought and don't need to repeat the changes for mime_mail and phpmailer as they inherit the messaging_mail destination, so I can remove half the changes from the above patch.

JoeMcGuire’s picture

Version: 6.x-4.0-beta7 » 6.x-4.x-dev
FileSize
3.72 KB

Thanks - Attached is a rerolled patch against latest dev.

Tested and works for user email changes. Is anyone able to test the the SMS amends?

ryan_courtnage’s picture

#5 and #6 are good patches that fix the issues described in the bug description. I did not test sms.