newsletter
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tikaraj21/yii2-newsletter "*"
or add
"tikaraj21/newsletter": "*"
to the require section of your composer.json
file.
Usage -----config.php
'modules' => [
---
'newsletter' => [
'class' => 'tikaraj21\newsletter\Newsletter',
],
----
],
and for mail sending use
'components' => [
...
'email' => 'tikaraj21\newsletter\mailer\Mail',
...
],
if any problem use
"yiisoft/yii2-swiftmailer": "~2.0.5",
To use menu manager (optional). Execute yii migration here:
yii migrate --migrationPath=@tikaraj21/newsletter/migrations
or
php yii migrate --migrationPath=@tikaraj21/newsletter/migrations
1. __BaseUrl__/newsletter/group/index
2. __BaseUrl__/newsletter/mergefields
3. __BaseUrl__/newsletter/email-templates
4. __BaseUrl__/newsletter/main/mailcreate
5. __BaseUrl__/newsletter/saved-email-templates
6. __BaseUrl__/newsletter/saved-email-templates/index
7. __BaseUrl__/newsletter/main/sending
8. __BaseUrl__/newsletter/setting/index
Once the extension is installed, simply use it in your code by :
```php