2017 © Pedro Peláez
 

package automail

SMTP, IMAP and POP3 autoconfiguration

image

madbob/automail

SMTP, IMAP and POP3 autoconfiguration

  • Monday, August 14, 2017
  • by madbob
  • Repository
  • 2 Watchers
  • 3 Stars
  • 252 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AutoMail

This package wraps the SMTP, IMAP and POP3 autoconfiguration API described by Mozilla., (*1)

For more informations, read the Mozilla documentation., (*2)

Installation

composer require madbob/automail, (*3)

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

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

Copyright (C) 2017 Roberto Guido bob@linux.it, (*5)

The Versions

14/08 2017

dev-master

9999999-dev

SMTP, IMAP and POP3 autoconfiguration

  Sources   Download

GPL-3.0+

by Roberto Guido

mail imap smtp

14/08 2017

0.1

0.1.0.0

SMTP, IMAP and POP3 autoconfiguration

  Sources   Download

GPL-3.0+

by Roberto Guido

mail imap smtp