SysErrorNotice.php 785 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace App\Mail;
  3. use Illuminate\Bus\Queueable;
  4. use Illuminate\Contracts\Queue\ShouldQueue;
  5. use Illuminate\Mail\Mailable;
  6. use Illuminate\Queue\SerializesModels;
  7. class SysErrorNotice extends Mailable
  8. {
  9. use Queueable, SerializesModels;
  10. public string $content = "";
  11. /**
  12. * Create a new message instance.
  13. *
  14. * @return void
  15. */
  16. public function __construct($content)
  17. {
  18. $this->content = $content;
  19. }
  20. /**
  21. * Build the message.
  22. *
  23. * @return $this
  24. */
  25. public function build()
  26. {
  27. $this->from("lilei@ttyuweb.com", "助友办公服务器");
  28. $this->subject("助友办公紧急通知");
  29. $this->to("597196313@qq.com");
  30. return $this->view('emails.server.error');
  31. }
  32. }