Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 927 Bytes

File metadata and controls

27 lines (20 loc) · 927 Bytes

$Mail - is system object, that provides mail sending functionality.

In fact, it is simple wrapper around https://github.com/Synchro/PHPMailer class, and is initialized with system settings to make usage as much simple, as it is possible.

Instance can be obtained in such way:

<?php
$Mail = \cs\Mail::instance();
###[Up](#) Methods

$Mail object has only one public method:

  • send_to()

This method allows to send message using system configuration (sender, if used - smtp settings, etc).

Example:

<?php
$Mail = \cs\Mail::instance();
$Mail->send_to('[email protected]', 'Title', 'Some message here');