Download the PHP package actweb/mail-auth without Composer

On this page you can find all versions of the php package actweb/mail-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mail-auth

mailAuth

Overview

PHP Class to authenticate a user against a mail server.

Specification

Allow setting of auth type : POP3, POP3S, IMAP, IMAPS, SMTP, SMTPS.

Take a username and a password and then attempt a login to the specified mail server.

If login is successful, then return true, else return false.

SMTP authentication function adapted from : http://support.webecs.com/kb/a390/php-mail-script-with-smtp-authentication.aspx

Usage

Configurable settings Default Value Description
mailServerUrl NONE Mailserver URL
serverPort NONE Mailserver Port number, normally automatically set after by setting the serverType, but can be overridden if required
serverType NONE Service to use for authentication POP3/POP3S/IMAP/IMAPS/SMTP/SMTPS
serverTypes Array of Types Built in list of valid services for authentication
errors Array of Errors List of all error codes, there description and some help text on what the issue may be
username NONE Set to the username to be used for authentication
password NONE Set to the password to be used for authentication
passwordType plain Currently on 'plain' is used, possible future enhancement to allow form based password encryption
passwordTypes List of supported passwordTypes, currently only 'plain' is supported
logger Null Logger \Monolog\Logger if passed to constructor, this is used for all logging
sslCheck true If true, then perform SSL verification on the connection. NOTE If using POP or IMAP, this should be set to 'false' as some bug causes PHP imap_open to still check SSL when using non-ssl connection
authenticated EMPTY Status of the authentication, set to True after user sucsesfully authenticates or False otherwise
timeOut 30 Time out for SMTP connections, best to set this to a low value, as the authentication script will wait till this timeout if there is an issue connecting to the server
newLine \r\n End Of Line terminator to use in SMTP comunications
smtpLocalHost NONE Local hostname for SMTP authentication, not currently used, will most likely be removed in a future revision.
Setup Logging, not required but good for debug

After authenticate() has been called, you can check the result of the authentication with :

SMTP Authentication

SMTPS Authentication

POP3 Authentication

POP3S Authentication

IMAP Authentication

IMAPS Authentication


All versions of mail-auth with dependencies

PHP Build Version
Package Version
Requires monolog/monolog Version 1.9.*
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package actweb/mail-auth contains the following files

Loading the files please wait ....