Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MistrySaurabh/acf972fd16f4834055c175e1e9f5bdf4 to your computer and use it in GitHub Desktop.
Save MistrySaurabh/acf972fd16f4834055c175e1e9f5bdf4 to your computer and use it in GitHub Desktop.
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