This commit is contained in:
wangjinlei
2023-06-16 16:48:11 +08:00
parent 39dee4062d
commit 3bd136071d
4 changed files with 34 additions and 21 deletions

View File

@@ -139,19 +139,18 @@ class User extends Base
$this->user_to_yboard_obj->insert($insert);
//发送通知邮件给用户
// $report_tt = "Dear " . $inser_data['realname'] . ',<br/><br/>';
// $report_tt .= "We are delighted to welcome you as a new author for our journal, " . $journal_info['title'] . ". We have received your submission and are excited to review it for potential publication.<br/><br/>";
// $report_tt .= "As a next step, we have created an account for you on our journal's website. Your account is [Username: " . trim($v['email']) . " password:$password]";
// $report_tt .= "and you can access your account by visiting " . $journal_info['website'] . " and logging in.<br/><br/>";
// $report_tt .= "If you have any questions or need assistance with accessing your account, please don't hesitate to contact us. We are here to support you throughout the submission and review process.<br/><br/>";
// $report_tt .= "Thank you for choosing to submit your work to our journal. We look forward to working with you.<br/><br/>";
// $report_tt .= "Best regards,<br>" . $journal_info['title'];
// $maidata['email'] = trim($v['email']);
// $maidata['title'] = $journal_info['title'];
// $maidata['content'] = $report_tt;
// $maidata['tmail'] = $journal_info['email'];
// $maidata['tpassword'] = $journal_info['epassword'];
// Queue::push('app\api\job\mail@fire', $maidata, "tmail");
$tt = 'Dear Dr. ' . ($user_info['realname'] == '' ? $user_info['account'] : $user_info['realname']) . ',<br><br>';
$tt .= "Thanks for your support to the journal ".$journal_info['title'].", Please note that your account of ".$journal_info['title']." has been created. The login credentials in the system is as below:<br><br>";
$tt .= "Your username: ".$user_info['account']."<br/>";
$tt .= "Your original password:123456qwe, if you want to reset or forget the password, please click the <a href='https://submission.tmrjournals.com/retrieve'>Forgot password</a><br/><br/>";
$tt .= "If you have any questions or concerns, please do not hesitate to contact us.<br/><br/>";
$tt .= "Sincerely,<br/>Editorial Office<br/>Subscribe to this journal ".$journal_info['title']."<br/>Email: ".$journal_info['email']."<br/>Website: ".$journal_info['website'];
$maidata['email'] = $user_info['email'];
$maidata['title'] = "Your Young Scientist Board Account of ".$journal_info['title']." has been Created";
$maidata['content'] = $tt;
$maidata['tmail'] = $journal_info['email'];
$maidata['tpassword'] = $journal_info['epassword'];
Queue::push('app\api\job\mail@fire', $maidata, "tmail");
return jsonSuccess([]);
}