1. Go to this page and download the library: Download ahmedwaleed/mailmerge 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/ */
ahmedwaleed / mailmerge example snippets
return [
/*
|--------------------------------------------------------------------------
| MailMerge Path
|--------------------------------------------------------------------------
|
| This is the URI prefix where Wink will be accessible from. Feel free to
| change this path to anything you like.
|
*/
'path' => env('MAILMERGE_PATH', 'mailmerge'),
/*
|--------------------------------------------------------------------------
| MailMerge Services Credentials
|--------------------------------------------------------------------------
|
*/
'services' => [
'default' => env('DEFAULT_SERVICE', 'mailgun'),
'mailgun' => [
'api_key' => env('MAILGUN_API_KEY'),
'api_domain' => env('MAILGUN_API_DOMAIN'),
'api_endpoint' => env('MAILGUN_API_ENDPOINT', 'https://api.mailgun.net'),
'api_base_url' => env('MAILGUN_API_BASE_URL'),
],
'pepipost' => [
'api_key' => env('PEPIPOST_API_KEY'),
'api_endpoint' => env('PEPIPOST_API_ENDPOINT'),
],
'sendgrid' => [
'api_key' => env('SENDGRID_API_KEY'),
'api_endpoint' => env('SENDGRID_API_ENDPOINT'),
],
],
/*
|--------------------------------------------------------------------------
| MailMerge Middleware Group
|--------------------------------------------------------------------------
|
| This is the middleware group that mailmerge uses for package web routes.
|
*/
'middleware_group' => env('MAILMERGE_MIDDLEWARE_GROUP', 'web'),
];