2017-25 © Pedro Peláez
 

library tk-mail

A mail lib using PHPMailer for the tk libs

image

ttek/tk-mail

A mail lib using PHPMailer for the tk libs

  • Tuesday, July 17, 2018
  • by tropotek
  • Repository
  • 1 Watchers
  • 0 Stars
  • 320 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 31 % Grown

The README.md

tk-mail

Project: tk-mail
Web: https://github.com/tropotek/tk-mail/
Authors: Michael Mifsud http://www.tropotek.com/, (*1)

A mail lib for the Tk lib. Uses PHPMailer for the email driver., (*2)

Contents

Installation

Available on Packagist (ttek/tk-mail) and installable via Composer., (*3)

composer require ttek/tk-mail

Or add the following to your composer.json file:, (*4)

"ttek/tk-mail": "~3.0"

Introduction

Basic Example:, (*5)

$message = new \Tk\Mail\Message();
$message->addTo('info@tropotek.com');
$message->setFrom('godar@tropotek.com.au');
$message->setSubject('This is a test email');
$message->setBody(\App\Config::createMailTemplate('This is some message text'));

$message->send();

Available Config Params:, (*6)

/* Default config options */
$cfg = array();

/*
 * Options mail, smtp, sendmail, qmail
 */
$cfg['mail.driver'] = 'mail';

/*
 * SMTP settings
 */

/**
 * SMTP hosts.
 * Either a single hostname or multiple semicolon-delimited hostnames.
 * You can also specify a different port
 * for each host by using this format: [hostname:port]
 * (e.g. "smtp1.example.com:25;smtp2.example.com").
 * You can also specify encryption type, for example:
 * (e.g. "tls://smtp1.example.com:587;ssl://smtp2.example.com:465").
 * Hosts will be tried in order.
 * @var string
 */
$cfg['mail.smtp.host'] = 'localhost';
// The default SMTP server port.
$cfg['mail.smtp.port'] = 25;
$cfg['mail.smtp.username'] = '';
$cfg['mail.smtp.password'] = '';
// What kind of encryption to use on the SMTP connection. Options: '', 'ssl' or 'tls'
$cfg['mail.smtp.secure'] = '';
// Whether to use SMTP authentication. Uses the Username and Password properties.
$cfg['mail.smtp.enableAuth'] = true;
// Whether to keep SMTP connection open after each message. If this is set to true 
//   then to close the connection requires an explicit call to smtpClose().
$cfg['mail.smtp.enableKeepAlive'] = '';

// Checks if the send command was called from this site
$cfg['mail.checkReferer'] = true;
// Add valid domain names as valid referers if needed
$cfg['mail.validReferers'] = '';

/*
 * Other misc options
 * Generally from the site config
 */
// Set this if you want all email to go to this address during debug
//$cfg['system.debug.email'] = 'debug@'.$_SERVER['HTTP_HOST'];

// \Tk\Request Used to set the X-Sender-IP, X-Referer headers
//$cfg['request'] = '';
// \Tk\Session Used to set the X-SiteReferer header
//$cfg['session'] = '';

// If true then all outgoing messages are sent to the `system.debug.email` address
//$cfg['debug'] = false;

// If set X-Application will be set to this
//$cfg['system.name'] = '';
//$cfg['system.version'] = '';

// Change this to suite your message body encoding
//$cfg['mail.encoding'] = 'UTF-8';


The Versions

17/07 2018

2.0.16

2.0.16.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

09/07 2018

2.0.14

2.0.14.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

31/05 2018

2.0.12

2.0.12.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

09/05 2018

2.0.11

2.0.11.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

08/05 2018

2.0.10

2.0.10.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

08/05 2018

2.0.9

2.0.9.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

15/01 2018

2.0.8

2.0.8.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

15/06 2017

2.0.7

2.0.7.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

26/05 2017

2.0.6

2.0.6.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

27/04 2017

2.0.4

2.0.4.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

26/04 2017

2.0.5

2.0.5.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

02/04 2017

2.0.3

2.0.3.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

30/12 2016

2.0.2

2.0.2.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

11/11 2016

2.0.1

2.0.1.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

05/09 2016

2.0.0

2.0.0.0

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek

23/03 2016

dev-master

9999999-dev

A mail lib using PHPMailer for the tk libs

  Sources   Download

MIT

The Requires

 

table tropotek