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
Comment #1
rkdesantos commentedAny idea when this fix will be incorporated?
Comment #2
kbahey commentedFixed in 5.x-3.x-dev, but wait till tomorrow before you download the new tarball.
Comment #3
rkdesantos commentedThe 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
Comment #4
kbahey commentedI committed another fix for this, removing the headers altogether.
Wait 24 hours and then download the new tarball.
Comment #5
rkdesantos commentedThis problem seems to have been resolved by the lastes change. So now marking fixed.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.