邮件修改
This commit is contained in:
@@ -375,9 +375,20 @@ class Reviewer extends Controller {
|
||||
|
||||
//发送email提醒
|
||||
if ($type != 'editor') {
|
||||
$tt = 'Dear editor,<br>';
|
||||
$tt .= 'Please check the new comments from the reviewer.';
|
||||
sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
// $tt = 'Dear editor,<br>';
|
||||
// $tt .= 'Please check the new comments from the reviewer.';
|
||||
// sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
$sendEditor=[
|
||||
'title'=>$journal_info['title'], // 邮件标题
|
||||
'content'=>'Dear editor,<br>Please check the new comments from the reviewer.',//邮件内容
|
||||
'user_id'=>$journal_info['editor_id'], //收件人ID
|
||||
'email'=>$editor_info['email'],// 收件人邮箱
|
||||
'journal_id'=>$journal_info['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$journal_info['email'], // 期刊邮箱
|
||||
'sendPassword'=>$journal_info['epassword'], // 期刊密码
|
||||
'from_name'=>$journal_info['title']
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendEditor,'domail');
|
||||
}
|
||||
|
||||
//保存usermsg
|
||||
@@ -514,8 +525,19 @@ class Reviewer extends Controller {
|
||||
$tt .= $journal_info['title'] . '<br>';
|
||||
$tt .= 'Email:' . $journal_info['email'] . '<br>';
|
||||
$tt .= 'Website:' . $journal_info['website'];
|
||||
sendEmail($reviewer_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
$sendEditor=[
|
||||
'title'=>$journal_info['title'], // 邮件标题
|
||||
'content'=>$tt,//邮件内容
|
||||
'user_id'=>$reviewer_info['user_id'], //收件人ID
|
||||
'email'=>$reviewer_info['email'],// 收件人邮箱
|
||||
'journal_id'=>$journal_info['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$journal_info['email'], // 期刊邮箱
|
||||
'sendPassword'=>$journal_info['epassword'], // 期刊密码
|
||||
'from_name'=>$journal_info['title']
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendEditor,'domail');
|
||||
//sendEmail($reviewer_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
@@ -680,13 +702,41 @@ class Reviewer extends Controller {
|
||||
$tt = 'Dear editor,<br>';
|
||||
$tt .= 'Please check the new comments from the reviewer.<br>';
|
||||
$tt .= 'Journal:' . $journal_info['title'] . ' and article title:' . $article_info['title'];
|
||||
sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
$sendEditor=[
|
||||
'title'=>$journal_info['title'], // 邮件标题
|
||||
'content'=>$tt,//邮件内容
|
||||
'user_id'=>$journal_info['editor_id'], //收件人ID
|
||||
'email'=>$editor_info['email'],// 收件人邮箱
|
||||
'journal_id'=>$journal_info['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$journal_info['email'], // 期刊邮箱
|
||||
'sendPassword'=>$journal_info['epassword'], // 期刊密码
|
||||
'from_name'=>$journal_info['title']
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendEditor,'domail');
|
||||
//sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
//发送email感谢reviewer并携带附件
|
||||
$reviewer_info = $this->user_obj->where('user_id', $art_rev_info['reviewer_id'])->find();
|
||||
$tt1 = 'You have reviewed 1 submission in the journal ' . $journal_info['title'] . ' during ' . date('Y') . '.Thank you for your support to our journal. This contribution is greatly appreciated.<br><br>';
|
||||
$tt1 .= 'Regards<br>Editorial Office<br>' . $journal_info['title'] . '<br><br>';
|
||||
$tt1 .= 'Contact us<br>TMR Publishing Group Address: 11 Cockle Bay Rd, Cockle Bay, Auckland 2014, New Zealand<br>Telephone: +64 02108293806<br>E-mail: publisher@tmrjournals.com';
|
||||
sendEmail($reviewer_info['email'], 'Your contribution is greatly appreciated', $journal_info['title'], $tt1, $journal_info['email'], $journal_info['epassword'], $reviewer_ZS);
|
||||
|
||||
|
||||
$sendReviewer=[
|
||||
'title'=>'Your contribution is greatly appreciated', // 邮件标题
|
||||
'content'=>$tt1,//邮件内容
|
||||
'user_id'=>$reviewer_info['user_id'], //收件人ID
|
||||
'email'=>$reviewer_info['email'],// 收件人邮箱
|
||||
'journal_id'=>$journal_info['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$journal_info['email'], // 期刊邮箱
|
||||
'sendPassword'=>$journal_info['epassword'], // 期刊密码
|
||||
'from_name'=>$journal_info['title'],
|
||||
'attachment_url'=>$reviewer_ZS
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendReviewer,'domail');
|
||||
|
||||
//sendEmail($reviewer_info['email'], 'Your contribution is greatly appreciated', $journal_info['title'], $tt1, $journal_info['email'], $journal_info['epassword'], $reviewer_ZS);
|
||||
//记录usermsg
|
||||
add_usermsg($journal_info['editor_id'], 'Feedback questionnaire be uploaded.', '/articleReviewerDetail?id=' . $data['art_rev_id']);
|
||||
|
||||
@@ -695,7 +745,7 @@ class Reviewer extends Controller {
|
||||
|
||||
// public function jpg_test(){
|
||||
// $reviewer_ZS = self::createReviewerZS(3380);
|
||||
// sendEmail("849192806@qq.com", "title", "ttttt", "content", 'tmr@tmrjournals.com', "Wu9999999999", $reviewer_ZS);
|
||||
// sendEmail("1586428462@qq.com", "title", "ttttt", "content", 'tmr@tmrjournals.com', "Wu9999999999", $reviewer_ZS);
|
||||
// }
|
||||
|
||||
/**
|
||||
@@ -847,6 +897,7 @@ class Reviewer extends Controller {
|
||||
// $img = 'http://journalapi.tmrjournals.com/public/journalicon/'.$res['data']['icon'];
|
||||
|
||||
$template = ROOT_PATH . 'public' . DS . 'reviewerZS' . DS . 'zs.jpg';
|
||||
halt($template);
|
||||
$ziti = ROOT_PATH . 'public' . DS . 'zhengshu' . DS . 'siyuan.ttf';
|
||||
$image = \think\Image::open($template);
|
||||
$image->text($journal_info['title'], $ziti, 70, '#000000', [1450, 950])
|
||||
@@ -912,7 +963,20 @@ class Reviewer extends Controller {
|
||||
$tt .= $journal_info['title'] . '<br>';
|
||||
$tt .= 'Email:' . $journal_info['email'] . '<br>';
|
||||
$tt .= 'Website:' . $journal_info['website'];
|
||||
sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
$sendReviewer=[
|
||||
'title'=>$journal_info['title'], // 邮件标题
|
||||
'content'=>$tt,//邮件内容
|
||||
'user_id'=>$user_info['user_id'], //收件人ID
|
||||
'email'=>$user_info['email'],// 收件人邮箱
|
||||
'journal_id'=>$journal_info['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$journal_info['email'], // 期刊邮箱
|
||||
'sendPassword'=>$journal_info['epassword'], // 期刊密码
|
||||
'from_name'=>$journal_info['title']
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendReviewer,'domail');
|
||||
|
||||
//sendEmail($user_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
$re['art_rev_id'] = $res;
|
||||
return jsonSuccess($re);
|
||||
|
||||
Reference in New Issue
Block a user