weird "from" address

Created on 10 January 2020, over 5 years ago
Updated 20 November 2024, 7 months ago

I don't understand the value of the double assignment where the "from" address is altered by this module. The code is:

$message['from'] = $message['headers']['From'] = t('"Contact form at !site_name" <!site_mail>', array('1contact_name' => $contact_name, '!contact_email' => $contact_email, '!site_name' => $site_name, '!site_mail' => $site_mail));

It was causing the following from address to be created:

"Kontaktný formulár zo stránky Na =?UTF-8?B?@nabezky.sk

The site name is "Na bežky!"

For now, I changed the line to:
$message['from'] = $message['headers']['From'] = $site_mail;
...and apparently the site email address shows on the delivered emails in the From field, which I think is the desired outcome.

I can create a patch also for this little problem if the module creator/maintainer thinks the solution is acceptable.

🐛 Bug report
Status

Closed: duplicate

Version

1.2

Component

Code

Created by

🇸🇰Slovakia sano

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