This could be due to my use of the mimemail module in conjunction with this module but I cannot be sure.

When the following mail is generated the From: line in the headers does not display correctly:

user_name,
Congratulations! You now have 1268 fan points on xxx.com.
Thanks for your support and contributions to the site.
Site Admin

The from line reads: From: xxxxx@xxx.com Reply-to: xxxxx@xxx.com X-Mailer: Drupal Return-path: xxxxx@xxx.com Errors-to: xxxxx@xxx.com

This seems to be caused by these lines in the code in function _userpoints_email_process :

    $from = variable_get('site_mail', ini_get('sendmail_from'));
    $headers = "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from";

    drupal_mail('userpoints_email',
      $user->mail, $subject, t(variable_get(USERPOINTS_EMAIL_TEXT, USERPOINTS_EMAIL_TEXT_DEFAULT),
      array('!username' => $user->name, '!points' => $current_points)),
      $headers);
  }

I changed the $headers to read:

$headers = "$from";

and this remedied the problem.

Comments

rkdesantos’s picture

Any idea when this fix will be incorporated?

kbahey’s picture

Status: Active » Fixed

Fixed in 5.x-3.x-dev, but wait till tomorrow before you download the new tarball.

rkdesantos’s picture

Status: Fixed » Active

The tarball fix didn't seem to completely resolve this... the messages have the following header info:

From:Array@XXX.YYYYY.net
Reply-To: Array@XXX.YYYYY.net

kbahey’s picture

I committed another fix for this, removing the headers altogether.

Wait 24 hours and then download the new tarball.

rkdesantos’s picture

Status: Active » Fixed

This problem seems to have been resolved by the lastes change. So now marking fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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