2017 © Pedro Peláez
 

library mail

Mail for XP

image

xp-framework/mail

Mail for XP

  • Monday, June 19, 2017
  • by thekid
  • Repository
  • 2 Watchers
  • 0 Stars
  • 39,227 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 8 % Grown

The README.md

Mail for XP

Build status on GitHub XP Framework Module BSD Licence Requires PHP 7.0+ Supports PHP 8.0+ Latest Stable Version, (*1)

E-Mail APIs, POP3, IMAP, MailDir, SMTP support., (*2)

Creating an email

use peer\mail\{Message, InternetAddress};

$msg= new Message();
$msg->setFrom(new InternetAddress('friebe@example.com', 'Timm Friebe'));
$msg->addRecipient(TO, new InternetAddress('foo@bar.baz', 'Foo Bar'));
$msg->addRecipient(CC, new InternetAddress('timm@foo.bar', 'Timm Friebe'));
$msg->setHeader('X-Binford', '6100 (more power)');
$msg->setSubject('Hello world');
$msg->setBody('Testmail');

Sending email

use peer\mail\transport\{MailTransport, TransportException};

$smtp= new MailTransport();
try {
  $smtp->connect();
  $smtp->send($msg);
} catch (TransportException $e) {
  $e->printStackTrace();
}

$smtp->close();

Using an SMTP server

use peer\mail\transport\{SmtpConnection, TransportException};

$smtp= new SmtpConnection('esmtp://user:pass@mail.example.com:25/?auth=login');
try {
  $smtp->connect();
  $smtp->send($msg);
} catch (TransportException $e) {
  $e->printStackTrace();
}

$smtp->close();

The Versions

23/01 2016

v6.1.1

6.1.1.0 http://xp-framework.net/

Mail for XP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

20/12 2015

v6.1.0

6.1.0.0 http://xp-framework.net/

Mail for XP

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

module xp

12/07 2015

v6.0.2

6.0.2.0 http://xp-framework.net/

Mail for XP

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

12/02 2015

v6.0.1

6.0.1.0 http://xp-framework.net/

Mail for XP

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

10/01 2015

v6.0.0

6.0.0.0 http://xp-framework.net/

Mail for XP

  Sources   Download

BSD-3-Clause

The Requires

 

module xp