The mimemail_headers function in mimemail.inc sets no From and Sender headers if they are not set yet.
The lines 59, 62 and 65 should be changed to:
if (!isset($headers['From']) || $headers['From'] == $default_from) etc.

Files: 

Comments

Could you attach a patch, please?

StatusFileSize
new896 bytes

In attachment

Title:Headers not correct setHeaders not correctly set
Version:6.x-1.0» 6.x-1.x-dev
Status:Active» Fixed

Committed to both branches, thanks!

Thx for the solution.

For me, this error caused mails to be sent by www-data instead of by the specified sender.

Status:Fixed» Closed (fixed)

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