AnonSec Team
Server IP : 185.61.154.36  /  Your IP : 216.73.216.44
Web Server : Apache
System : Linux host67.registrar-servers.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : gettoplisting ( 12043)
PHP Version : 7.2.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/gettoplisting/.trash/functionalityRee/../functionalityRee.1/yii/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/gettoplisting/.trash/functionalityRee/../functionalityRee.1/yii/README.md
# Mailjet Client

## Create Mailjet Account

https://goo.gl/YNWTwd

## Install

```
composer require weluse/yii2-mailjet
```
or add it to your composer.json in the require section
```
"weluse/yii2-mailjet": "*",
```

## Setup
add/replace this in your config under the components key.
```
'components' => [
  'mailer' => [
    'class' => 'weluse\mailjet\Mailer',
    'apikey' => 'yourApiKey',
    'secret' => 'yourSecret',
  ],
],
```


## Example

```
Yii::$app->mailer->compose('signup', ['user' => $user])
->setTo($user->email)
->setFrom([Yii::$app->params['noReplyMailAddress'] => Yii::$app->name])
->setSubject('Signup success')
->send();
```

## Setup Event Tracking
Write the tracking item to the mailer config.
```
'components' => [
  'mailer' => [
    'class' => 'weluse\mailjet\Mailer',
    'apikey' => 'yourApiKey',
    'secret' => 'yourSecret',
    'tracking' => [
      'bounce' => 'http://yoururl.com/tracking?event=bounce',
    ],
  ],
],
```
To activate this url you must run this command at one time.
```
Yii::$app->mailer->activateTracking();
```

AnonSec - 2021