This commit is contained in:
wangjinlei
2021-03-24 14:45:06 +08:00
parent 5826738edf
commit 9252f6b831
3 changed files with 49 additions and 4 deletions

View File

@@ -112,9 +112,13 @@ class User extends Controller {
$inser_data['ctime'] = time();
$this->user_obj->insert($inser_data);
//发送注册成功邮件
$tt = "Dear author,You have successfully registered<br><br>";
$content = $tt . '<p>Username:' . $account . '<br>Password:' . $data['password'] . '</p>';
sendEmail($email, 'Dear ' . $data['name'], 'TMR', $content,);
$tt = 'Hello,<br><br>';
$tt .= 'Your account has been created. You may check on the status of your manuscript using this submission and tracking system: https://submission.tmrjournals.com<br>';
$tt .= "Username:$account<br>";
$tt .= "Password:".$data['password'].'<br><br>';
$tt .= "Many thanks<br>TMR Publishing Group";
// $content = $tt . '<p>Username:' . $account . '<br>Password:' . $data['password'] . '</p>';
sendEmail($email, 'Dear ' . $data['name'], 'TMR', $tt,);
return json($inser_data);
}