# aitoc/smtp

> SMTP

`composer require aitoc/smtp`

Canonical URL: https://packagento.com/aitoc/smtp

## At a glance

- **Vendor**: aitoc (https://packagento.com/aitoc.md)
- **Latest version**: 1.0.8 — released 2025-10-09
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/aitoc/smtp and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require aitoc/smtp:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

SMTP

## README

### Description

**Advanced Level of Your Email Marketing**

Daily efforts related to sending numerous emails do not guarantee that all these emails will exactly come to customers. Unfortunately, there is a high probability that some of the messages will be rejected or will marked as spam. The default Magento email settings cannot offer you a perfect solution, endowing your emails with a doubtful reputation, so they can be rated as untrustworthy. 

This solution ensures merchants that all their messages will be delivered automatically and directly to the target audience. Among the other powerful features, **SMTP Email Settings extension for Magento 2** provides the option to control customization and arrange tests on the server that will guarantee that emails will reach customers timely.

The extension provides friendly configurations with multiple SMTP servers such as **Gmail, Yahoo, Outlook, Mail.com, Hotmail, Office365, O2 Mail, Send In Blue, etc.**

**What are the key benefits SMTP Email Configuration for Magento 2 provides you with?**
- Your emails will definitely reach the recipients
- No rejection and hitting a spam box
- You cooperate only with trusted email providers
- You are able to run tests before emails sending
- The secured connection ensures improved deliverability rates
- Using Email Log with advanced control
- Using Plain text for increase Spam-score


### Useful Information
- [About Us](https://www.aitoc.com/about-us.html)
- [Privacy Policy](https://www.aitoc.com/privacy-policy.html)
- [Partnership Program](https://www.aitoc.com/partnership-program)
- [Affiliate Program](https://www.aitoc.com/affiliate-program)
- [Aitoc Customer Rewards](https://www.aitoc.com/reward-points)
- [SMTP User Guide](https://www.aitoc.com/docs/guides/smtp.html)
- [Get Support](https://www.aitoc.com/get-support.html)


### Installation Guide

**INSTALL VIA COMPOSER**

Here you can find the guide [**'Extensions installation via composer'**](https://www.aitoc.com/docs/guides/composer.html#extensions-installation-via-composer).

As your next steps, run these CLI commands:

```
composer require aitoc/smtp
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
```

### Extension features

| Feature | Specification |
| -------- | -------- |
| **Soft configuration** | Store owners may easily reset the information about any attributes with many options. Your mail will be flexibly configured and work much faster, depending on your purposes.   |
| **Supporting trusted SMTP providers** | It is good to have your own SMTP server, however, in order to save time in the configuration for your email business, you may easily customize from one of the famous email service vendors, including Gmail, Yahoo, Outlook, Mail.com, Hotmail, Office365, O2 Mail, Send In Blue, and many more.   |
| **Email logging** | You get a smart block that keeps all sent email logs. It allows checking back who sent an email and how it was sent. Besides, you can check the current status (pending, in process or failed) as well as the exact sending time. Moreover, it is possible to find mistakes when checking the detailed logs.     |
| **Debug mode** | This feature is designed to test emails, check SMTP connection, and run self-testing of the module (without sending emails). The SMTP Debug mode allows store owners to manage, preview or review the time the email created.    |
| **Testing emails before sending** | This useful feature is aimed to help you to define whether the current email setting is work properly or not. Running tests is about the visual examination that can be performed by you. It will provide general looking back at the email again.    |
| **Export Email to CSV Files (coming soon)** | The extension will also help to export an email to the CSV file. Save your time and export your email into CSV.      |


**OTHER FEATURES**
- Use Your Own SMTP Server
- Sending the test emails before sending officially
- Ensure all emails will be sent to desired customers
- Email logging with detailed view of every letter
- Delete email log manually
- Debug mode by SMTP email settings to test
- Supports flexible servers
- Check and preview sent emails

### User Guide

Avoid unprofessional email management and do not find shipment information, order confirmation, invoices, or other important messages in a spam box. **SMTP Email Configuration for Magento 2 by Aitoc** is what can really assist to get success.
Here are the details about the configuration in the extension’s backend.

### Emails Log

Get the access here: ***REPORTS → SMTP → EMAILS LOG***. From here, you are able to track all the sent email from the server to customers.

[![](https://fstorage.aitoc.com/documentation/smtp-m2/emails.png)](https://fstorage.aitoc.com/documentation/smtp-m2/emails.png)

By clicking [![](https://fstorage.aitoc.com/documentation/smtp-m2/select.png)](https://fstorage.aitoc.com/documentation/smtp-m2/select.png) in each mail, you can have a general looking at the display which how your email will reach customer’s eyes. Hit [![](https://fstorage.aitoc.com/documentation/smtp-m2/clear.png)](https://fstorage.aitoc.com/documentation/smtp-m2/clear.png) to clear all the archived emails after checking carefully.

### Configuration

#### General Settings

You should be at Admin Panel in order to configure general settings: ***STORES → CONFIGURATION → AITOC EXTENSIONS → SMTP → GENERAL SETTINGS***.
Choose **'Yes'** to enable Aitoc SMTP on.

[![](https://fstorage.aitoc.com/documentation/smtp-m2/gen_set.png)](https://fstorage.aitoc.com/documentation/smtp-m2/gen_set.png)

#### SMTP Settings

Still from the same structure with **'General Settings'**, scroll down to see **'SMTP Settings'**.

[![](https://fstorage.aitoc.com/documentation/smtp-m2/smtp.png)](https://fstorage.aitoc.com/documentation/smtp-m2/smtp.png)

_(README truncated for .md surface. Full README on https://packagento.com/aitoc/smtp.)_

## Changelog

#### 1.0.8 - 2025-08-26
#### Changed
- Added compatibility for Magento 2.4.8 and PHP 8.4 (SMTP-22)

### 1.0.7 - 2024-11-06
#### Changed
- Added compatibility for Magento 2.4.7-p2 and PHP 8.3

### 1.0.6 - 2024-02-14
#### Fixed
- Better error handling of sending scenarios.

### 1.0.5 - 2024-02-14
#### Changed
- Updated module dependencies for improved compatibility (SMTP-19)
- Code style improvements (SEND-16)

### 1.0.4 - 2022-04-26
#### Changed
- Added PHP 8.1 compatibility
- Added Magento 2.4.4 compatibility

### 1.0.3 - 2021-09-14
#### Fixed
- Fixed issue with email when special character is available in customer name
- Fixed the resend email content

### 1.0.2 - 2021-07-24
#### Changed
- Update compatibility for Magento 2.4

### 1.0.1 - 2020-06-19
#### Fixed
- Minor bug fixes

### 1.0.0 - 2019-11-08
#### Changed
- Extension release

## Recent Versions

| Version | Released |
|---|---|
| 1.0.8 | 2025-10-09 |
| 1.0.7 | 2024-11-28 |
| 1.0.6 | 2024-02-19 |
| 1.0.4 | 2022-09-23 |

## Dependencies

### Require

| Package | Constraint |
|---|---|
| aitoc/core | >=1.0.17 |
| ext-dom | * |

## Quality

Latest release (1.0.8) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 179 | 179 warnings (ruleset: Magento2) — 40 auto-fixable with phpcbf |
| PHPMD | Warning | 59 | 59 rule violations (MissingImport:26, UnusedFormalParameter:6, CyclomaticComplexity:6, ExcessiveClassComplexity:5, NPathComplexity:5) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 23 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 2 | valid; 2 advisory notes (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 123 | 123 | – | – |
| 2.4.8 | – | 105 | 105 | – |
| 2.4.9 | – | – | 104 | 104 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["aitoc/smtp"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

aitoc is a Magento 2 vendor on Packagento. See https://packagento.com/aitoc.md for their full catalogue.

