取消注册邮件验证

1
composer require isaced/flarum-ext-email-verification-switch

国内邮件推送平台?

暂时没发现有支持的插件。

将邮件格式由纯文本改为 HTML

修改flarum能发送html邮件

  1. vendor/flarum/core/src/Api/Controller/SendConfirmationEmailController.php 90 行的
1
$this->mailer->raw($body, // 其后省略

改为

1
$this->mailer->send(['html' => $body], [], 
  1. vendor/illuminate/mail/Mailer.php 213 行起的
1
2
$data['message'] = $message = $this->createMessage();
$this->addContent($message, $view, $plain, $raw, $data);

改为

1
2
3
$message = $this->createMessage();
$this->addContent($message, $view, $plain, $raw, $data);
$data['message'] = $message;
  1. 还是 Mailer.php,将 315 行(左右)的 $message->$method($raw, 'text/plain') 改为 $message->$method($raw, 'text/html')