Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
86a2b1c1
authored
Feb 13, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
发送邮件
parent
6702d1d1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
1 deletions
app/Http/Services/UserService.php
app/Mail/UserRegisterNotification.php
resources/views/emails/code.blade.php
resources/views/emails/user_register_notification.blade.php
app/Http/Services/UserService.php
View file @
86a2b1c1
...
...
@@ -2,11 +2,14 @@
namespace
App\Http\Services
;
use
App\Mail\SendCode
;
use
App\Mail\UserRegisterNotification
;
use
App\Models\Cms\CmsUserModel
;
use
App\Models\CountryModel
;
use
App\Models\UserModel
;
use
Carbon\Carbon
;
use
Illuminate\Support\Facades\Hash
;
use
Illuminate\Support\Facades\Mail
;
use
Illuminate\Support\Facades\Redis
;
class
UserService
...
...
@@ -44,6 +47,10 @@ class UserService
AutoAssignCustomerService
::
incAssignNumByDepartmentId
(
$assign
[
'department_id'
]);
}
//发送提醒邮件
$salesEmail
=
CmsUserModel
::
where
(
'userId'
,
$salesId
)
->
value
(
'email'
);
Mail
::
to
(
$salesEmail
)
->
send
(
new
UserRegisterNotification
());
return
$userId
;
}
}
app/Mail/UserRegisterNotification.php
0 → 100644
View file @
86a2b1c1
<?php
namespace
App\Mail
;
use
Illuminate\Bus\Queueable
;
use
Illuminate\Contracts\Queue\ShouldQueue
;
use
Illuminate\Mail\Mailable
;
use
Illuminate\Queue\SerializesModels
;
class
UserRegisterNotification
extends
Mailable
{
use
Queueable
,
SerializesModels
;
public
$code
;
public
$msg
;
/**
* Create a new message instance.
*
* @return void
*/
public
function
__construct
()
{
}
/**
* Build the message.
*
* @return $this
*/
public
function
build
()
{
return
$this
->
view
(
'emails.user_register_notification'
)
->
subject
(
'深贸网站-新用户注册'
);
}
}
resources/views/emails/code.blade.php
View file @
86a2b1c1
...
...
@@ -2,7 +2,7 @@
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
菜鸟教程(runoob.com)
</title>
<title>
Email Code
</title>
</head>
<body>
...
...
resources/views/emails/user_register_notification.blade.php
0 → 100644
View file @
86a2b1c1
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
>
<title>
User Register Notification
</title>
</head>
<body>
<div
style=
"padding: 100px"
>
<div>
<img
style=
"width: 25%;"
src=
"https://img.ichunt.com/images/ichunt/202211/22/c0a944d0d89fde3ba67477369eac1bb2.png"
>
</div>
<div
style=
"margin-top: 50px"
>
<p>
系统为您分配深贸网站的新注册用户,请及时跟进。(快捷跳转链接:
<a
target=
"_blank"
href=
"http://admin.semour.net/admin/user"
>
http://admin.semour.net/admin/users
</a>
)
</p>
</div>
</div>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment