mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKit.git
synced 2026-01-15 00:35:08 +08:00
fix(utils.email): 修复 email 组件中发件人无法正常获取的bug
This commit is contained in:
@@ -48,7 +48,11 @@ class EmailService
|
||||
string $subject = '',
|
||||
string $text = ''
|
||||
): bool {
|
||||
$from = config('mailer_sender_name') . ' <' . config('mailer_sender') . '>';
|
||||
$from = sprintf(
|
||||
"%s <%s>",
|
||||
config('common.third_party.email.mailer_sender_name'),
|
||||
config('common.third_party.email.mailer_sender')
|
||||
);
|
||||
$email = (new Email())
|
||||
->from(Address::create($from))
|
||||
->to($target)
|
||||
|
||||
Reference in New Issue
Block a user