eMI eMailer
Developer: | eMedia Intellect |
---|---|
Initial release: | |
Stable release: | 1.1 () |
Written in: | PHP (UTF-8) |
Operating system: | Cross-platform |
Size: | 46346 bytes |
Development status: | Active |
Available in: | English |
Type: | SMTP client |
Licence: | GNU GPLv3 |
Download: | github.com packagist.org root.emi.is |
eMI eMailer is a simple cross-platform object-oriented SMTP client implemented in PHP. It is primarily intended to transfer MIME e-mail messages generated by PHP on the same host as the SMTP server of the sender.
Overview
With this solution transferring e-mails can be as simple as:
/* Content */
$SimpleMimeBodyPart = new Emi\EMailer\MimeBodyPart();
$SimpleMimeBodyPart->SetContent('This is a simple message.');
/* Message */
$SimpleMimeMessage = new Emi\EMailer\MimeMessage($SimpleMimeBodyPart);
$SimpleMimeMessage->SetSubject('Simple message');
$SimpleMimeMessage->SetFrom('sender@example.org');
$SimpleMimeMessage->AddTo('receiver@example.org');
/* SMTP client */
$SimpleSmtpClient = new Emi\EMailer\SmtpClient();
$SimpleSmtpClient->SetClientDomain('example.org');
$SimpleSmtpClient->SetServerDomain('example.org');
$SimpleSmtpClient->Transfer($SimpleMimeMessage);
The solutions offers extensive error mitigation – exception handling – in an object oriented manner.
Directory contents
Directory index
- eMI-eMailer directory
- Library directory
- Exceptions directory
- CommunicationException.php file
- ExtensionException.php file
- MailFromException.php file
- SocketException.php file
- inclusion.php file
- MimeBodyPart.php file
- MimeMessage.php file
- MimeMultipartBodyPart.php file
- SmtpClient.php file
- Exceptions directory
- composer.json directory
- Testing directory
- gpl-3.0.txt file
- Library directory
Library directory
The Library directory contains the PHP library.
Testing directory
The Testing directory contains files used for testing the solution during development.
Authorship
Stefán Örvar Sigmundsson, programmer
Licence
eMI FileUpload Library by eMedia Intellect is licensed under GNU General Public License version 3.