Download the PHP package avangdev/avang-php-sendemail-api without Composer
On this page you can find all versions of the php package avangdev/avang-php-sendemail-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download avangdev/avang-php-sendemail-api
More information about avangdev/avang-php-sendemail-api
Files in avangdev/avang-php-sendemail-api
Download avangdev/avang-php-sendemail-api
More information about avangdev/avang-php-sendemail-api
Files in avangdev/avang-php-sendemail-api
Vendor avangdev
Package avang-php-sendemail-api
Short Description PHP API for send Email. Easily send outgoing email
License MIT
Homepage https://www.avangemail.com
Package avang-php-sendemail-api
Short Description PHP API for send Email. Easily send outgoing email
License MIT
Homepage https://www.avangemail.com
Keywords AvangEmail
Please rate this library. Is it a good library?
Informations about the package avang-php-sendemail-api
Avang REST client for Send Email
A simple Avang REST client library for PHP. This library allows you to quickly and easily use the Avang Web API via PHP for send Emails.
Prerequisites
Installation
Make sure you have composer installed.
Require the package
PHP Versions
Requires PHP >= 7.1
Examples
##### Send simple email
require_once(__DIR__.'/../vendor/autoload.php');
use AvangPhpApi\Base;
use AvangPhpApi\ComposeMessage;
$host = 'https://example.com'; // host address
$key = 'yourApiKey'; // example key
$base = new Base($host, $key);
$composeMessage = new ComposeMessage($base);
$composeMessage->to('[email protected]');
$composeMessage->from('John Doe<[email protected]>');
$composeMessage->sender('[email protected]');
$composeMessage->subject('Mail subjec');
$composeMessage->replyTo('[email protected]');
$composeMessage->plainBody('Hello');
$composeMessage->htmlBody('<h1>Hello</h1>');
$composeMessage->attach('test.png', 'application/octet-stream', 'test');
$result = $composeMessage->send();
All versions of avang-php-sendemail-api with dependencies
PHP Build Version
Package Version
The package avangdev/avang-php-sendemail-api contains the following files
Loading the files please wait ....