yiimodules/yii2-newsletter

This package is abandoned and no longer maintained. No replacement package was suggested.

Complete newsletter management system

Installs: 138

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 3

Type:yii2-extension

1.0.0 2016-10-23 15:45 UTC

This package is not auto-updated.

Last update: 2018-08-13 20:25:53 UTC


README

#Newsletter Management Yii2 Module Complete newsletter management module for Yii2 based web application, Ready to integrate

  • Easy to install
  • Create Unlimited newsletters
  • Html enabled email content

1. Download

yii2-newsletter can be installed using composer. Run following command to download and install yii2-newsletter:

composer require "yiimodules/yii2-newsletter:dev-master"

2. Configure

Add following lines to your main configuration file to access this module via web URL:

'modules' => [
	'newsletter' => [
		'class' => 'yiimodules\newsletter\Module',
	],
],

Configure text editor module

'modules' => [
	'redactor' => 'yii\redactor\RedactorModule',
],

3. Update database schema

The last thing you need to do is updating your database schema by applying the migrations. Make sure that you have properly configured db application component and run the following command:

$ php yii migrate/up --migrationPath=@vendor/yiimodules/yii2-newsletter/migrations

Run module?

$ http://localhost/YOUR-PROJECT-NAME/web/index.php?r=newsletter

Add enteries to created campaign

// To Insert contact in newsletter campaign
$contact = array(
	'userId'		=> $user->id,
	'email'			=> $user->email,
	'mobile'		=> $user->profile->mobile
);
$campaignId 	= 	$campaignId;
Yii::$app->getModule('newsletter')->addContact($campaignId,$contact))