Site specific From Address cannot be overridden per mail, and smtp multiple module needs that ability.

Created on 30 November 2020, about 4 years ago
Updated 25 November 2024, about 2 months ago

Problem/Motivation

The SMTP Authentication Support (multiple) module (smtp_multiple) enables a site to maintain multiple SMTP server configurations based on the mail key used to send the mail.

The SMTP module permits the SMTP server username, password, to be set based on values set for the specific mail in $message['params']. However, values specified for the 'from address' and 'from_name' are overriden by the values configured in the SMTP modules configuration, e.g. 'smtp_fromname'.

Steps to reproduce

[supriya1992 please replace this text with steps to reproduce, including installing both modules.]

Proposed resolution

By changing the code in the SMTP module so that $message['params']['from_name'] can override $this->smtpConfig->get('smtp_fromname'), the SMTP Authentication Support (multiple) module can be made to work.

However, doing so would break other sites that depend on $this->smtpConfig->get('smtp_fromname') having priority.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India supriya1992

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.

Production build 0.71.5 2024