File: /var/www/ivs.kaunokolegija.lt/laravel/app/Mail/UpdateCompanyInfoMail.php
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class UpdateCompanyInfoMail extends Mailable
{
use Queueable, SerializesModels;
public $company;
public $updateLink;
/**
* Create a new message instance.
*/
public function __construct($company, $updateLink)
{
$this->company = $company;
$this->updateLink = $updateLink;
}
/**
* Get the message envelope.
*/
public function envelope(): Envelope
{
return new Envelope(
subject: 'Atnaujinti Informacija',
);
}
public function build()
{
return $this->subject('PraĊĦome atnaujinti informacija')
->markdown('emails.updateCompanyInfo');
}
}