Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created June 24, 2019 21:44
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 parzibyte/f8be0cb1921144731193d1a213b40b55 to your computer and use it in GitHub Desktop.
Save parzibyte/f8be0cb1921144731193d1a213b40b55 to your computer and use it in GitHub Desktop.
<?php
Route::get("/test_mail", function(Request $r){
$destinatario = "el_correo@ejemplo.com";
$nombre = "Luis Cabrera Benito";
// Armar correo y pasarle datos para el constructor
$correo = new \App\Mail\ProbarCorreo($nombre);
# ¡Enviarlo!
\Mail::to($destinatario)->send($correo);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment