PHPackages                             ofat/yii2-yashop-ses - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. ofat/yii2-yashop-ses

Abandoned → [prasanthsGandiva/yii2-ses](/?search=prasanthsGandiva%2Fyii2-ses)ArchivedYii2-extension[Mail &amp; Notifications](/categories/mail)

ofat/yii2-yashop-ses
====================

Extension for sending emails via amazon ses

v1.0.3(9y ago)8116.0k—0%17[5 issues](https://github.com/ofat/yashop-ses/issues)MITPHP

Since May 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ofat/yashop-ses)[ Packagist](https://packagist.org/packages/ofat/yii2-yashop-ses)[ RSS](/packages/ofat-yii2-yashop-ses/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

Amazon ses extension for Yii2
=============================

[](#amazon-ses-extension-for-yii2)

Extension for sending emails via amazon ses. Part of YaShop

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist ofat/yii2-yashop-ses "*"

```

or add

```
"ofat/yii2-yashop-ses": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

To use this extension, you should configure it in the application configuration like the following:

```
'components' => [
    ...
    'mail' => [
        'class' => 'yashop\ses\Mailer',
        'access_key' => 'Your access key',
        'secret_key' => 'Your secret key',
        'host' => 'email.us-east-1.amazonaws.com' // not required
    ],
    ...
],
```

To send an email, you may use the following code:

```
Yii::$app->mail->compose('contact/html', ['contactForm' => $form])
    ->setFrom('from@domain.com')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->send();
```

To send an email with headers, you may use the following code:

```
Yii::$app->mail->compose('contact/html', ['contactForm' => $form])
    ->setFrom('from@domain.com')
    ->setTo($form->email)
    ->setSubject($form->subject)
    ->setHeader('Precedence', 'bulk')
    ->setHeader('List-id', '')
    ->setHeader('List-Unsubscribe', Url::to(['user/unsubscribe'], true))
    ->send();
```

Increase the speed of sending emails:

```
Yii::$app->mailer->getSES()->enableVerifyHost(false);
Yii::$app->mailer->getSES()->enableVerifyPeer(false);
Yii::$app->mailer->getSES()->enableKeepAlive();

foreach ($emails as $email) {
    Yii::$app->mail->compose('delivery/mail', [])
        ->setFrom('from@domain.com')
        ->setTo($email)
        ->setSubject($subject)
        ->setHeader('Precedence', 'bulk')
        ->setHeader('List-id', '')
        ->setHeader('List-Unsubscribe', Url::to(['user/unsubscribe'], true))
        ->send();
}

Yii::$app->mailer->getSES()->enableKeepAlive(false);
```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~316 days

Total

4

Last Release

3496d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6b12324ca169889adf131f4705dec3ab2aa8ba65d47f8c5f0a22dd17a31b2d4?d=identicon)[ofat](/maintainers/ofat)

---

Top Contributors

[![ofat](https://avatars.githubusercontent.com/u/1476004?v=4)](https://github.com/ofat "ofat (12 commits)")[![daniel-zahariev](https://avatars.githubusercontent.com/u/263063?v=4)](https://github.com/daniel-zahariev "daniel-zahariev (4 commits)")[![evaldemar](https://avatars.githubusercontent.com/u/3917590?v=4)](https://github.com/evaldemar "evaldemar (4 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

awsyii2extensionses

### Embed Badge

![Health badge](/badges/ofat-yii2-yashop-ses/health.svg)

```
[![Health](https://phpackages.com/badges/ofat-yii2-yashop-ses/health.svg)](https://phpackages.com/packages/ofat-yii2-yashop-ses)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

84135.6k2](/packages/nterms-yii2-mailqueue)[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28168.1k](/packages/boundstate-yii2-mailgun)[odaialali/yii2-toastr

This is the Toastr extension for Yii 2. It encapsulates Toastr plugin in terms of Yii widgets, and makes ajax notification easy to implement.

1689.5k](/packages/odaialali-yii2-toastr)[djagya/yii2-sparkpost

A library provides Yii2 integration with SparkPost mail service

1816.4k](/packages/djagya-yii2-sparkpost)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
