Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
password reset mail() bug
#1
around line 60 in reset password.php

PHP Code:
// MAIL FIX START
// To send HTML mail, the Content-type header must be set
$headers  'MIME-Version: 1.0' "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' "\r\n";
exec_action('resetpw-success');
$status mail($EMAIL,$subject,$message$headers);
//MAIL FIX END 

in v3.12, the function calls sendmail() not mail().
And, it tries to send html email without setting the headers properly.
Reply
#2
sendmail is a core function that handles sending html mail.
It looks fine to me.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)