Return-Path incorrectly set in MimeMailFormatHelper::mimeMailHeaders

Created on 6 December 2018, about 6 years ago
Updated 11 May 2023, over 1 year ago

Hi together

I am facing an issue, when trying to send HTML mail using the mimemail module.
The problem i have is, that the Return-Path header is not set correctly in the outgoing Mail. that leads to problems with many mail providers.

I tracked the problem down to the function MimeMailFormatHelper::mimeMailHeaders where this function wraps the return-Path into <> brackets. This leads to a problem in PhpMail::mail() where $site_mail === $message['Return-Path'] is false then, since $message['Return-Path'] is wrapped. Also the wrapped address is not shellsafe, which results in sendmail using the default address, which is not correct in my case.

i will create a patch for that.

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland megadesk3000

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