PHP code example of marketforce-info / yii2-sendgrid
1. Go to this page and download the library: Download marketforce-info/yii2-sendgrid library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
marketforce-info / yii2-sendgrid example snippets
'mailer' => [
'class' => \MarketforceInfo\SendGrid\Mailer::class,
'viewPath' => '@common/mail',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => false,
'apiKey' => '[YOUR_SENDGRID_API_KEY]',
],