1. Go to this page and download the library: Download bjnstnkvc/mail-components library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bjnstnkvc / mail-components example snippets
/**
* Create a new message instance.
*/publicfunction__construct(){
$this->theme = 'mail-components';
}
classVerificationMailextendsMailable{
/**
* Create a new message instance.
*/publicfunction__construct(public User $user, public string $email, public string $token){
//
}
/**
* Get the message envelope.
*/publicfunctionenvelope(): Envelope{
returnnew Envelope(
from : new Address('example@example.com', 'Example'),
subject: 'Verify Email',
);
}
/**
* Get the message content definition.
*/publicfunctioncontent(): Content{
returnnew Content(
view: 'mail.verification-mail',
);
}
}
mail_components.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.