邮件修改
This commit is contained in:
@@ -97,12 +97,24 @@ class Auto extends Controller {
|
||||
$tt .= 'Email: ' . $cache_journal['email'] . '<br>';
|
||||
$tt .= 'Website:<a href="' . $cache_journal['website'] . '">' . $cache_journal['website'] . '</a>';
|
||||
|
||||
$maidata['email'] = $cache_reviewer['email'];
|
||||
$maidata['title'] = "Invitation to review manuscript for " . $cache_journal['title'] . " - Reminder";
|
||||
$maidata['content'] = $tt;
|
||||
$maidata['tmail'] = $cache_journal['email'];
|
||||
$maidata['tpassword'] = $cache_journal['epassword'];
|
||||
Queue::push('app\api\job\mail@fire', $maidata, "tmail");
|
||||
//$maidata['email'] = $cache_reviewer['email'];
|
||||
//$maidata['title'] = "Invitation to review manuscript for " . $cache_journal['title'] . " - Reminder";
|
||||
//$maidata['content'] = $tt;
|
||||
//$maidata['tmail'] = $cache_journal['email'];
|
||||
//$maidata['tpassword'] = $cache_journal['epassword'];
|
||||
//Queue::push('app\api\job\mail@fire', $maidata, "tmail");
|
||||
|
||||
$sendUser=[
|
||||
'title'=>"Invitation to review manuscript for " . $cache_journal['title'] . " - Reminder", // 邮件标题
|
||||
'content'=>$tt,//邮件内容
|
||||
'user_id'=>$v['reviewer_id'], //收件人ID
|
||||
'email'=>$cache_reviewer['email'],// 收件人邮箱
|
||||
'journal_id'=>$cache_journal['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$cache_journal['email'], // 期刊邮箱
|
||||
'sendPassword'=>$cache_journal['epassword'], // 期刊密码
|
||||
'from_name'=>"Invitation to review manuscript for " . $cache_journal['title'] . " - Reminder"
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendUser,'domail');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -172,12 +184,26 @@ class Auto extends Controller {
|
||||
$tt .= 'Email: ' . $cache_journal['email'] . '<br>';
|
||||
$tt .= 'Website:<a href="' . $cache_journal['website'] . '">' . $cache_journal['website'] . '</a>';
|
||||
|
||||
$maidata['email'] = $cache_author['email'];
|
||||
$maidata['title'] = "Revision Due Date-" . $cache_journal['title'];
|
||||
$maidata['content'] = $tt;
|
||||
$maidata['tmail'] = $cache_journal['email'];
|
||||
$maidata['tpassword'] = $cache_journal['epassword'];
|
||||
Queue::push('app\api\job\mail@fire', $maidata, "tmail");
|
||||
//$maidata['email'] = $cache_author['email'];
|
||||
//$maidata['title'] = "Revision Due Date-" . $cache_journal['title'];
|
||||
//$maidata['content'] = $tt;
|
||||
//$maidata['tmail'] = $cache_journal['email'];
|
||||
//$maidata['tpassword'] = $cache_journal['epassword'];
|
||||
//Queue::push('app\api\job\mail@fire', $maidata, "tmail");
|
||||
|
||||
$sendUser=[
|
||||
'title'=>"Revision Due Date-" . $cache_journal['title'], // 邮件标题
|
||||
'content'=>$tt,//邮件内容
|
||||
'user_id'=>$cache_author['user_id'], //收件人ID
|
||||
'email'=>$cache_author['email'],// 收件人邮箱
|
||||
'journal_id'=>$cache_journal['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$cache_journal['email'], // 期刊邮箱
|
||||
'sendPassword'=>$cache_journal['epassword'], // 期刊密码
|
||||
'from_name'=>"Revision Due Date-" . $cache_journal['title']
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendUser,'domail');
|
||||
|
||||
|
||||
}
|
||||
} else {
|
||||
if ($cache_t == 14 || $cache_t == 21 || $cache_t == 28) {
|
||||
@@ -194,12 +220,25 @@ class Auto extends Controller {
|
||||
$tt .= 'Email: ' . $cache_journal['email'] . '<br>';
|
||||
$tt .= 'Website:<a href="' . $cache_journal['website'] . '">' . $cache_journal['website'] . '</a>';
|
||||
|
||||
$maidata['email'] = $cache_author['email'];
|
||||
$maidata['title'] = "Revision Due Date-" . $cache_journal['title'];
|
||||
$maidata['content'] = $tt;
|
||||
$maidata['tmail'] = $cache_journal['email'];
|
||||
$maidata['tpassword'] = $cache_journal['epassword'];
|
||||
Queue::push('app\api\job\mail@fire', $maidata, "tmail");
|
||||
//$maidata['email'] = $cache_author['email'];
|
||||
//$maidata['title'] = "Revision Due Date-" . $cache_journal['title'];
|
||||
//$maidata['content'] = $tt;
|
||||
//$maidata['tmail'] = $cache_journal['email'];
|
||||
//$maidata['tpassword'] = $cache_journal['epassword'];
|
||||
//Queue::push('app\api\job\mail@fire', $maidata, "tmail");
|
||||
|
||||
$sendUser=[
|
||||
'title'=>"Revision Due Date-" . $cache_journal['title'], // 邮件标题
|
||||
'content'=>$tt,//邮件内容
|
||||
'user_id'=>$cache_author['user_id'], //收件人ID
|
||||
'email'=>$cache_author['email'],// 收件人邮箱
|
||||
'journal_id'=>$cache_journal['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$cache_journal['email'], // 期刊邮箱
|
||||
'sendPassword'=>$cache_journal['epassword'], // 期刊密码
|
||||
'from_name'=>"Revision Due Date-" . $cache_journal['title']
|
||||
];
|
||||
Queue::push('app\api\job\domail@fire',$sendUser,'domail');
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -364,12 +403,25 @@ class Auto extends Controller {
|
||||
$editor_info = $this->user_obj->where('user_id', $article['editor_id'])->find();
|
||||
//根据文章筛选候选人
|
||||
$reviewer = $this->chose_reviewer($article);
|
||||
|
||||
$sendUser=[
|
||||
'title'=> $journal_info['title'], // 邮件标题
|
||||
'user_id'=>$article['editor_id'], //收件人ID
|
||||
'email'=>$editor_info['email'],// 收件人邮箱
|
||||
'journal_id'=>$article['journal_id'], // 期刊ID
|
||||
'sendEmail'=>$journal_info['email'], // 期刊邮箱
|
||||
'sendPassword'=>$journal_info['epassword'], // 期刊密码
|
||||
'from_name'=>$journal_info['title']
|
||||
];
|
||||
|
||||
if ($reviewer == null) {//没有查询到审稿人,执行提醒操作
|
||||
//发送邮件到编辑,提醒需要手动添加审稿案例
|
||||
$tt = 'Dear editor,<br>';
|
||||
$tt .= 'There are no enough research area related reviewers in the reviewer list for manuscript ID ' . $article['accept_sn'] . ', please add reviewers for your journal or manual deal with this problem.<br><br>';
|
||||
$tt .= 'TMR Publishing Group';
|
||||
sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
$sendUser['content'] = $tt;
|
||||
Queue::push('app\api\job\domail@fire',$sendUser,'domail');
|
||||
//sendEmail($editor_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
} else {//查询到审稿人,执行添加操作
|
||||
//将审稿时间定义至现在
|
||||
$this->user_obj->where('user_id', $reviewer['user_id'])->update(['rtime' => time()]);
|
||||
@@ -410,7 +462,11 @@ class Auto 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']);
|
||||
|
||||
$sendUser['content'] = $tt;
|
||||
Queue::push('app\api\job\domail@fire',$sendUser,'domail');
|
||||
|
||||
//sendEmail($reviewer_info['email'], $journal_info['title'], $journal_info['title'], $tt, $journal_info['email'], $journal_info['epassword']);
|
||||
|
||||
//记录userlog
|
||||
$log_data['user_id'] = $article_info['editor_id'];
|
||||
|
||||
Reference in New Issue
Block a user