murattcann / sendgrid-mailer
A package to send mails with Sendgrid
dev-main
2022-07-14 15:31 UTC
Requires
- sendgrid/sendgrid: ^8.0
This package is auto-updated.
Last update: 2024-05-14 19:26:50 UTC
README
Installation
composer require murattcann/sendgrid-mailer
After run below command, run this:
php artisan vendor:publish
and type the sendgridmailer-config index number, click enter.
After publish process edit config\sendgrid_credentials.php file like:
return [
"token" => "your token by sendgrid",
"from_email" => "from email address",
"from_name" => "from name for emails",
"default_subject" => "Default Email Subject",
];
Usage Of This Package
SendgridSender::getInstance()->to("email address to send")->subject("your email sıbject")->send("your email content or html data")