mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Fix email_user
This commit is contained in:
parent
b621c13c03
commit
f6c9ac075a
2 changed files with 2 additions and 2 deletions
|
@ -987,7 +987,7 @@ function email_user($username, $subject, $body)
|
|||
foreach($headers as $header => $value)
|
||||
$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;
|
||||
}
|
||||
/**
|
||||
|
|
2
core.php
2
core.php
|
@ -642,7 +642,7 @@ function email_user($username, $subject, $body)
|
|||
foreach($headers as $header => $value)
|
||||
$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;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue