public function getTest()
 {
     Sender::setConfiguration(['host' => 'smtp.gmail.com', 'port' => 465, 'address' => '*****@*****.**', 'name' => 'Telmo Riofrio', 'username' => 'telmorafael.riofriot', 'password' => '1987@Rafa', 'encryption' => '']);
     return Mail::raw("Envio de un mensaje usando la interfaz de laravel y el cliente smtp de funiber", function ($message) {
         $message->to('*****@*****.**', 'Telmo Riofrio');
         $message->subject('Correo usando la interfaz de laravel');
         //$message->from($address, $name = null);
         //$message->sender($address, $name = null);
         //$message->cc($address, $name = null);
         //$message->bcc($address, $name = null);
         //$message->replyTo($address, $name = null);
         //$message->priority($level);
         //$message->attach($pathToFile, array $options = []);
         // Attach a file from a raw $data string...
         //$message->attachData($data, $name, array $options = []);
         // Get the underlying SwiftMailer message instance...
         //$message->getSwiftMessage();
     });
 }
 public function setData(User $user, Mailing $mailing)
 {
     $this->user = $user;
     $this->mailing = $mailing;
     $this->senders = ['data' => Sender::all(), 'selected' => []];
 }
 public function __construct(User $user, Mailing $mailing)
 {
     $this->user = $user;
     $this->mailing = $mailing;
     $this->senders = Sender::all();
 }