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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sgabe’s picture

Could you attach a patch, please?

marcdecaluwe’s picture

In attachment

sgabe’s picture

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

Committed to both branches, thanks!

Isostar’s picture

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.