1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 16:33:00 +00:00

Fix email_user

This commit is contained in:
Starbeamrainbowlabs 2017-05-20 15:35:25 +01:00
parent b621c13c03
commit f6c9ac075a
2 changed files with 2 additions and 2 deletions

View file

@ -987,7 +987,7 @@ function email_user($username, $subject, $body)
foreach($headers as $header => $value) foreach($headers as $header => $value)
$compiled_headers .= "$header: $value\r\n"; $compiled_headers .= "$header: $value\r\n";
mail($settings->users->{$username->emailAddress}, $subject, $body, $compiled_headers, "-t"); mail($settings->users->{$username}->emailAddress, $subject, $body, $compiled_headers, "-t");
return true; return true;
} }
/** /**

View file

@ -642,7 +642,7 @@ function email_user($username, $subject, $body)
foreach($headers as $header => $value) foreach($headers as $header => $value)
$compiled_headers .= "$header: $value\r\n"; $compiled_headers .= "$header: $value\r\n";
mail($settings->users->{$username->emailAddress}, $subject, $body, $compiled_headers, "-t"); mail($settings->users->{$username}->emailAddress, $subject, $body, $compiled_headers, "-t");
return true; return true;
} }
/** /**