Problem/Motivation

For code that is sending email to a user then we'd like a quick way of setting the recipient, langcode and account for rendering.

If sending email to a configured address that happens to correspond to a user then we should do the same. For example, the address for automatic update messages is likely to match a user account.

Proposed resolution

  • Enhance Email::setAccount() function to set recipient and langcode if they are not already set.
  • Allow passing NULL to Email::setAccount() to default the account from the recipient.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

AdamPS created an issue. See original summary.

adamps’s picture

Title: Default langcode from to address » Set account/langcode from recipient
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new12.37 KB

  • AdamPS committed 701862e on 1.x
    Issue #3274899 by AdamPS: Set account/langcode from recipient
    
adamps’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.