PHPackages                             madbob/automail - 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. madbob/automail

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

madbob/automail
===============

SMTP, IMAP and POP3 autoconfiguration

0.1(8y ago)32952GPL-3.0+PHP

Since Aug 14Pushed 8y ago2 watchersCompare

[ Source](https://github.com/madbob/automail)[ Packagist](https://packagist.org/packages/madbob/automail)[ RSS](/packages/madbob-automail/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

AutoMail
========

[](#automail)

This package wraps the SMTP, IMAP and POP3 autoconfiguration API described by Mozilla.

For more informations, [read the Mozilla documentation](https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration).

Installation
============

[](#installation)

`composer require madbob/automail`

Usage
=====

[](#usage)

```
require 'vendor/autoload.php';

use AutoMail\AutoMail;
use AutoMail\NotFoundException;

try {
	/*
		Pass your mail address to AutoMail::discover() to obtain an array with
		all available configurations, both for incoming and outgoing messages
	*/
	$configuration = AutoMail::discover('yourmailaddress@libero.it');

	print_r($configuration);

	/*
		[
			'incoming' => [
				[
					'protocol' => 'IMAP',
					'hostname' => 'imapmail.libero.it',
					'port' => 993,
					'socketType' => 'SSL',
					'authentication' => 'password-cleartext',
					'username' => 'yourmailaddress@libero.it'
				],
				[
					'protocol' => 'POP3',
					'hostname' => 'popmail.libero.it',
					'port' => 995,
					'socketType' => 'SSL',
					'authentication' => 'password-cleartext',
					'username' => 'yourmailaddress@libero.it'
				]
			],
			'outgoing' => [
				[
					'protocol' => 'SMTP',
					'hostname' => 'smtp.libero.it',
					'port' => 465,
					'socketType' => 'SSL',
					'authentication' => 'password-cleartext',
					'username' => 'yourmailaddress@libero.it'
				]
			]
		]
	*/
}
catch(NotFoundException $e) {
	echo $e->getMessage();
}
```

License
=======

[](#license)

This code is free software, licensed under the The GNU General Public License version 3 (GPLv3). See the LICENSE.md file for more details.

Copyright (C) 2017 Roberto Guido

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3191d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62f3d33ebbc1253ba476780ce052333ed5ee8c59be347e026063b50f0ac9b278?d=identicon)[madbob](/maintainers/madbob)

---

Top Contributors

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

---

Tags

imapispdbpop3smtpmailsmtpimap

### Embed Badge

![Health badge](/badges/madbob-automail/health.svg)

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

###  Alternatives

[php-imap/php-imap

Manage mailboxes, filter/get/delete emails in PHP (supports IMAP/POP3/NNTP)

1.7k12.9M42](/packages/php-imap-php-imap)[ddeboer/imap

Object-oriented IMAP for PHP

9153.9M11](/packages/ddeboer-imap)[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M246](/packages/nette-mail)[webklex/php-imap

PHP IMAP client

4365.5M14](/packages/webklex-php-imap)[jason-munro/cypht

Lightweight Open Source webmail written in PHP and JavaScript

1.5k146.0k](/packages/jason-munro-cypht)[directorytree/imapengine

A fully-featured IMAP library -- without the PHP extension

531175.4k4](/packages/directorytree-imapengine)

PHPackages © 2026

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