File: /var/www/vhost/disk-apps/comfama.sports-crowd.com/app/Mail/NewSuscriptorMail.php
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class NewSuscriptorMail extends Mailable
{
use Queueable, SerializesModels;
public $user_name;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($user_name)
{
$this->user_name = $user_name;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$mail = $this->subject('Abonos Confirmados')->view('mails.newSuscriptor');
return $mail;
}
}