2017 © Pedro Peláez
 

library raw-email

Raw email library

image

hyperdigital/raw-email

Raw email library

  • Thursday, June 4, 2015
  • by hyperdigital
  • Repository
  • 2 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

About

This library simplifies work with emails in PHP. The main class – RawEmail.php offers building a raw email. The raw email supports: - Attachments - Multiple recipients - Both HTML and Plain text versions, (*1)

Install via composer

composer require hyperdigital/raw-email

Use

<?php

use Hyperdigital\RawEmail\RawEmail;

$html = "

HTML version

"; $rawEmail = new RawEmail("no-reply@hyperdigital.de", "no-reply@hyperdigital.de"); $rawData = $rawEmail->build(array('developer@hyperdigital.de'), 'Some subject', 'Plain text version', $html); // Send the email data

Use with Amazon SES (example using ^2.8)

  • Install aws/aws-sdk-php via composer
composer require aws/aws-sdk-php ^2.8
<?php

use Aws\Common\Aws;
use Hyperdigital\RawEmail\RawEmail;

$html = "

HTML version

"; $rawEmail = new RawEmail("no-reply@hyperdigital.de", "no-reply@hyperdigital.de"); $rawData = $rawEmail->build(array('developer@hyperdigital.de'), 'Some subject', 'Plain text version', $html); $aws = Aws::factory($credentials); $ses = $aws->get('Ses'); $ses->sendRawEmail(array( 'RawMessage' => array( 'Data' => base64_encode($rawData), ), ) );

Advanced

If you need some additional functionality, feel free to inspect how RawEmail.php class works and use the component classes to create your customized emails., (*2)

The Versions

04/06 2015

dev-master

9999999-dev

Raw email library

  Sources   Download

proprietary

by Avatar hyperdigital

04/06 2015

1.0.1

1.0.1.0

Raw email library

  Sources   Download

proprietary

by Avatar hyperdigital

04/06 2015

dev-devel

dev-devel

Raw email library

  Sources   Download

proprietary

by Avatar hyperdigital

04/06 2015

1.0

1.0.0.0

Raw email library

  Sources   Download

proprietary

by Avatar hyperdigital