Created
April 4, 2018 03:12
-
-
Save MistrySaurabh/acf972fd16f4834055c175e1e9f5bdf4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use GuzzleHttp\Client; | |
$client = new \GuzzleHttp\Client(); | |
$response = $client->request('POST','http://51.15.140.211:3333/send',[ | |
'headers' => [ | |
'content-type' => 'application/x-www-form-urlencoded', | |
], | |
'form_params' => [ | |
'name'=>$event->user->name, | |
'to' =>$event->user->email, | |
'token'=>$token, | |
'email_type'=> $event->email_type | |
], | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment