Download the PHP package mambaru/smtpd without Composer

On this page you can find all versions of the php package mambaru/smtpd. 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 smtpd

SMTPd

SMTP server (library) written in PHP. This library only provides an interface to the SMTP protocol with PHP. You need to deliver the mails by yourself.

Why this project?

Believe it or not, email is still the killer feature of the Internet. There are tons of projects like PHPMailer: to send emails programmatically (with PHP). But there are not so many to receive emails from SMTP.

With this interface you can do something like this for your app users:

User <-> MUA (like Thunderbird) <-> SMTP <-> Your PHP App

This is useful when you have a messaging application written in PHP but no graphical user interface for it. So your graphical user interface can be any email client. Thunderbird for instance.

Installation

The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to composer.json:

composer.phar require "thefox/smtpd=~0.1"

Stand-alone server

  1. Clone project from GitHub.

    git clone https://github.com/TheFox/smtpd.git

  2. Install dependencies.

    make

  3. To start a stand-alone server you can type the following command in your shell:

    ./application.php server -d

    To show the usage options use -h:

    ./application.php server -h

    You can change the IP and port. Default port is 20025.

    ./application.php server -a 0.0.0.0 -p 25

Note: The stand-alone server is only for testing. If you want to use it for production you need to define a save/deliver function. See example below.

Usage

Use this library to provide an IMAP server in your own project.

loop() is only a loop with run() executed. So you need to execute run() in your own project to keep the SMTP server updated.

RFC 821 Implementation

Complete implementation

Incomplete implementation

RFC 1651 Implementation

Complete implementation

Related Projects

Contribute

You're welcome to contribute to this project. Fork this project at https://github.com/TheFox/smtpd. You should read GitHub's How to Fork a Repo.

License

Copyright (C) 2014 Christian Mayer http://fox21.at

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.


All versions of smtpd with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
zendframework/zend-mail Version ~2.3
symfony/console Version ~2.5
symfony/filesystem Version ~2.5
liip/process-manager Version ~1.0
exorus/php-mime-mail-parser Version 1.*
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 mambaru/smtpd contains the following files

Loading the files please wait ....