Modify: 添加管理员邮箱发送

给管理员邮箱发送审核信息

修改:
- Link.php
- link-console-add.blade.php

Signed-off-by: XiaoLFeng <gm@x-lf.cn>
This commit is contained in:
筱锋xiao_lfeng 2023-07-20 12:04:25 +08:00
parent d26ebd9706
commit 90bce6ecd8
2 changed files with 74 additions and 0 deletions

View File

@ -121,6 +121,12 @@ public function apiCustomAdd(HttpRequest $request): JsonResponse
global $request;
$mail->from(env('MAIL_USERNAME'), env('APP_NAME'));
$mail->to($request->userEmail);
$mail->subject(env('APP_NAME') . '-友链申请成功');
});
Mail::send('mail.link-console-add', $request->toArray(), function (Message $mail) {
global $request;
$mail->from(env('MAIL_USERNAME'), env('APP_NAME'));
$mail->to($this->data['sqlEmail']);
$mail->subject(env('APP_NAME') . '-友链等待审核通知');
});
// 消息成功通知

View File

@ -0,0 +1,68 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Mail</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="600"
style="border-collapse: collapse;border: 1px solid #cccccc;box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175)">
<tr>
<td align="center" bgcolor="#70bbd9" style="padding: 30px 0 30px 0; font-size: 30px;"><b>{{ env('APP_NAME') }}</b></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="padding: 30px 30px 30px 30px;">
<tr>
<td style="padding: 10px 0px 30px 0px;color: #08212b; font-family: Arial, sans-serif; font-size: 10px;">
时间: <b>{{ date('Y-m-d H:i:s') }}</b>
</td>
</tr>
<tr>
<td style="padding: 0px 0px 10px 0px;color: #000000; font-family: Arial, sans-serif; font-size: 24px;">
Dear. <a style="text-decoration: none;color: #198754;" href="mailto:{{ $userEmail }}">{{ $userEmail }}</a>
</td>
</tr>
<tr>
<td style="padding: 0px 5px 5px 0px;color: #000000; font-family: Arial, sans-serif; font-size: 16px;">
您好 <a style="text-decoration: none;color: #198754;" href="{{ env('APP_BLOG') }}">{{ env('APP_NAME') }}</a> 站长<br/>
有新的友人申请了友链,请及时审核哦~<br/>
<hr/>
<a style="text-decoration: none;color: #198754;" href="{{ route('console.friends-link.check') }}">> 点击审核</a>
<hr/>
以下是他的简要信息:<br/>
<ul>
<li>博主邮箱:{{ $userEmail }}</li>
<li>贵站名字:{{ $userBlog }}</li>
<li>贵站地址:{{ $userUrl }}</li>
<li>图片地址:{{ $userIcon }}</li>
<li>贵站介绍:{{ $userDescription }}</li>
@if(!empty($userRemark))
<li>备注内容:{{ $userRemark }}</li>
@endif
@if(!empty($checkRssJudge))
<li>RSS地址{{ $userRSS }}</li>
@endif
</ul>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#f0f0f0" style="padding: 30px 20px 30px 20px;">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="font-family: Arial, sans-serif; font-size: 14px;">
<font style="color: grey;">&copy; 2022 - {{ date('Y') }}. {{ env('APP_NAME') }} All Rights Reserved.</font><br/>
<font style="color: grey;">本邮件为自动发出,请勿直接回复</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
<td style="padding: 30px 0 20px 0;"></td>
</tr>
</html>