PHPackages                             lzaplata/smartemailing - 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. lzaplata/smartemailing

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

lzaplata/smartemailing
======================

SmartEmailing wrapper for Nette Framework.

030PHP

Since Feb 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/LZaplata/SmartEmailing)[ Packagist](https://packagist.org/packages/lzaplata/smartemailing)[ RSS](/packages/lzaplata-smartemailing/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SmartEmailing
=============

[](#smartemailing)

This is small Nette Framework wrapper for SmartEmailing.

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

[](#installation)

The easiest way to install library is via Composer.

```
$ composer require lzaplata/smartemailing: dev-master
```

or edit `composer.json` in your project

```
"require": {
        "lzaplata/smartemailing": "dev-master"
}
```

You have to register the library as extension in `config.neon` file.

```
extensions:
        smartEmailing: LZaplata\SmartEmailing\DI\Extension
```

Now you can set parameters...

```
smartEmailing:
        username           : *
        apiKey             : *
```

...and autowire library to presenter

```
use LZaplata\SmartEmailing\Client;

/** @var Client @inject */
public $smartEmailingClient;
```

Usage
-----

[](#usage)

### Import contact

[](#import-contact)

```
try {
    $this->smartEmailingClient->importContact($email, $contactlistId);
} catch (\Exception $e) {
    echo $e->getMessage();
}
```

### Get single email

[](#get-single-email)

```
try {
    $request = $this->smartEmailingClient->getEmail($id);

    echo $request->json();
} catch (\Exception $e) {
    echo $e->getMessage();
}
```

### Send custom email

[](#send-custom-email)

First of all you have to declare `LZaplata\SmartEmailing\Helpers\Email` object and then pass it as parameter to `sendCustomEmail` function.

```
try {
    $email = new Email();
    $email->setSender($senderEmail, $senderName);
    $email->setRecipient($recipientEmail, $recipientName);
    $email->setSubject($subject);
    $email->setHtmlBody($html);
    $email->setTag($tag);
    $email->setReplacements([
        "key" => "content"
    ]);

    $this->smartEmailingClient->sendCustomEmail($email);
} catch (\Exception $e) {
    echo($e->getMessage());
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/21e359158717ff6a2f55493600405fb6ad93e5b2cc9c92d0f34743c7e8658bf6?d=identicon)[Zap](/maintainers/Zap)

---

Top Contributors

[![LZaplata](https://avatars.githubusercontent.com/u/12596881?v=4)](https://github.com/LZaplata "LZaplata (1 commits)")

### Embed Badge

![Health badge](/badges/lzaplata-smartemailing/health.svg)

```
[![Health](https://phpackages.com/badges/lzaplata-smartemailing/health.svg)](https://phpackages.com/packages/lzaplata-smartemailing)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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