邮件发送失败加错误信息提醒
This commit is contained in:
@@ -17,18 +17,36 @@ class Cronmonitor extends Controller
|
||||
'cite' => [
|
||||
|
||||
'email_subject' => 'Congratulations! Your article published in {#email_subject#} has recently been cited',
|
||||
'email_content' => '
|
||||
Dear {#author_name#},<br><br>
|
||||
I hope this message finds you well! I would like to take this opportunity to extend my warmest congratulations to you. Your article, "{#article_name#}" has been cited in "{#journal_name#}"{#factor#}. This is an incredible achievement that truly reflects your outstanding contributions to the field.<br><br>
|
||||
Once again, congratulations! I look forward to seeing more of your remarkable research in the future!<br><br>
|
||||
Best regards,<br>
|
||||
{#editorinchief#}<br>
|
||||
{#journal_title#}<br>
|
||||
Website:{#journal_usx#}<br>
|
||||
X: @{#journal_sx#}Journals',
|
||||
// 'email_content' => '
|
||||
// Dear {#author_name#},<br><br>
|
||||
// I hope this message finds you well! I would like to take this opportunity to extend my warmest congratulations to you. Your article, "{#article_name#}" has been cited in "{#journal_name#}"{#factor#}. This is an incredible achievement that truly reflects your outstanding contributions to the field.<br><br>
|
||||
// Once again, congratulations! I look forward to seeing more of your remarkable research in the future!<br><br>
|
||||
// Best regards,<br>
|
||||
// {#editorinchief#}<br>
|
||||
// {#journal_title#}<br>
|
||||
// Website:{#journal_usx#}<br>
|
||||
// X: @{#journal_sx#}Journals',
|
||||
'email_content' => 'Dear {#author_name#},<br><br>
|
||||
|
||||
I hope this message finds you well!<br><br>
|
||||
|
||||
I am writing to inform you that your article, titled “{#article_title#}” published in {#journal_title#} has recently been cited in th following recently work. For your reference, here are the details of the citation:<br><br>
|
||||
|
||||
Citing Article: {#article_name#}<br>
|
||||
{#author#}
|
||||
Published in: {#journal_name#}<br>
|
||||
{#year#}
|
||||
{#doi_url#}
|
||||
|
||||
We greatly appreciate your valuable contribution to {#journal_title#} and are delighted to see your work being recognized and cited. It’s a pleasure to witness the ongoing influence of your research.<br><br>
|
||||
|
||||
We believe that your expertise and insights could lead to many productive and impactful joint efforts in the future. Should you be interested in exploring opportunities for collaboration, please do not hesitate to reach out.<br><br>
|
||||
|
||||
Thank you for your ongoing contributions to the academic community! Congratulations!'
|
||||
]
|
||||
];
|
||||
|
||||
protected $sDoiUrl = 'https://doi.org/';
|
||||
public function __construct(\think\Request $request = null)
|
||||
{
|
||||
parent::__construct($request);
|
||||
@@ -147,7 +165,13 @@ class Cronmonitor extends Controller
|
||||
'{#journal_title#}' => $from_name,//期刊名
|
||||
'{#journal_usx#}' => empty($aJournalInfo['usx']) ? '' : $this->sJournalUsx.$aJournalInfo['usx'],//官网地址
|
||||
'{#journal_sx#}' => empty($aJournalInfo['sx']) ? '' : $aJournalInfo['sx'],//期刊sx
|
||||
'{#author#}' => empty($val['author']) ? '' : 'Citing Author(s): '.$val['author'].'<br>'//引用作者
|
||||
];
|
||||
|
||||
$aVol = empty($val['vol']) ? [] : explode(' ',$val['vol']);
|
||||
$aSearch['{#year#}'] = empty($aVol[0]) ? '' : 'Year: '.$aVol[0].'<br>';
|
||||
$aSearch['{#doi_url#}'] = empty($val['doi']) ? '' : 'DOI or Link to Citing Article: '.$this->sDoiUrl.$val['doi'].'<br><br>';
|
||||
$aSearch['{#article_title#}'] = empty($aArticle[$val['article_id']]) ? '' : strip_tags($aArticle[$val['article_id']]);
|
||||
$content = str_replace(array_keys($aSearch), array_values($aSearch), $aEmailCite['email_content']);
|
||||
//判断标题和内容是否为空
|
||||
if(empty($title) || empty($content)){
|
||||
|
||||
Reference in New Issue
Block a user