Permalink
Browse files

由 sync 寄送信件

  • Loading branch information...
1 parent b1ceabb commit b8bbd243b04d78d57c1307193e07bdb832728817 Sam.IO.Hsiao committed Nov 24, 2016
Showing with 18 additions and 0 deletions.
  1. +18 −0 app/Services/MailService.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace App\Services;
+
+use Illuminate\Mail\Message;
+use Mail;
+
+class MailService
+{
+ public function mailBySync()
+ {
+ Mail::send('welcome', [], function (Message $message) {
+ $message->sender('oomusou@gmail.com');
+ $message->subject('Laravel 5.2 mail by Sync');
+ $message->to('oomusou@gmail.com');
+ });
+ }
+}

0 comments on commit b8bbd24

Please sign in to comment.