<commit_before><?php

/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\mailer;

use Yii;

/**
 * The component mailer for yii2 framework to send email message.
 * 
 * @property \Swift_Mailer $mailer Swift Mailer class.
 * @property \Swift_Message $message Message (RFC 2822) object.
 * @property \Swift_Transport $transport The Transport used to send messages.
 * @property mixed $failedRecipients Failures by-reference
 * @author <NAME> <<EMAIL>>
 * @since 2.0
 */
class Mailer extends \yii\base\Object
{

    /**
     * Set the priority of this message.
     * @var int The value is an integer where 1 is the highest priority and 5 is the lowest. 
     */
    public $priority = 3;

    /**
     * @var string The character set of this message.
     */
    public $charset = 'utf-8';

    /**
     * @var string The Content-Type of this message.
     */
    public $contentType = 'text/html';

    /**
     * @var string The Transport used to send messages. cases smtp|sendmail|null.
     * Case smtp Transport call Swift_SmtpTransport, case sendmail Transport call Swift_SendmailTransport, default to call Swift_MailTransport
     */
    public $transportType;

    /**
     *
     * The options for Transport
     * Example for transport type is smtp
     * ```php
     *  $mailer = new yii\mailer\Mailer(array(
     *      'transportType' => 'smtp',
     *      'transportOptions' => array(
     *          'host' => 'smtp.live.com',
     *          'port' => 587,
     *          'encryption' => 'tls',
     *          'username' => '<EMAIL>',
     *          'password' => '<PASSWORD>',
     *      ),
     *      'from' => array('<EMAIL>' => 'Your Name'),
     *      'failedRecipients' => array('<EMAIL>' => '<NAME>'),
     *  ));
     * ```
     * Example for transport type is sendmail
     * ```php
     *  $mailer = new yii\mailer\Mailer(array(
     *      'transportType' => 'sendmail',
     *      'transportOptions' => array(
     *          'command' => '/usr/sbin/exim -bs', //default $command is /usr/sbin/sendmail -bs
     *      ),
     *      'from' => array('<EMAIL>' => '<NAME>'),
     *      'failedRecipients' => array('<EMAIL>' => 'Your Name'),
     *  ));
     * ```
     * @var array The Transport Options 
     */
    public $transportOptions = array();

    /**
     * @var string|array The sender of this message.
     */
    public $from = array('webmaster@localhost', 'Webmaster');

    /**
     * @var array An array of failures by-reference
     */
    public $failedRecipients = array();

    /**<commit_msg>Fix failedRecipients must be private property.<commit_after><?php

/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace yii\mailer;

use Yii;

/**
 * The component mailer for yii2 framework to send email message.
 * 
 * @property \Swift_Mailer $mailer Swift Mailer class.
 * @property \Swift_Message $message Message (RFC 2822) object.
 * @property \Swift_Transport $transport The Transport used to send messages.
 * @property mixed $failedRecipients Failures by-reference
 * @author <NAME> <<EMAIL>>
 * @since 2.0
 */
class Mailer extends \yii\base\Object
{

    /**
     * Set the priority of this message.
     * @var int The value is an integer where 1 is the highest priority and 5 is the lowest. 
     */
    public $priority = 3;

    /**
     * @var string The character set of this message.
     */
    public $charset = 'utf-8';

    /**
     * @var string The Content-Type of this message.
     */
    public $contentType = 'text/html';

    /**
     * @var string The Transport used to send messages. cases smtp|sendmail|null.
     * Case smtp Transport call Swift_SmtpTransport, case sendmail Transport call Swift_SendmailTransport, default to call Swift_MailTransport
     */
    public $transportType;

    /**
     *
     * The options for Transport
     * Example for transport type is smtp
     * ```php
     *  $mailer = new yii\mailer\Mailer(array(
     *      'transportType' => 'smtp',
     *      'transportOptions' => array(
     *          'host' => 'smtp.live.com',
     *          'port' => 587,
     *          'encryption' => 'tls',
     *          'username' => '<EMAIL>',
     *          'password' => '<PASSWORD>',
     *      ),
     *      'from' => array('<EMAIL>' => 'Your Name'),
     *      'failedRecipients' => array('<EMAIL>' => 'Your Name'),
     *  ));
     * ```
     * Example for transport type is sendmail
     * ```php
     *  $mailer = new yii\mailer\Mailer(array(
     *      'transportType' => 'sendmail',
     *      'transportOptions' => array(
     *          'command' => '/usr/sbin/exim -bs', //default $command is /usr/sbin/sendmail -bs
     *      ),
     *      'from' => array('<EMAIL>' => 'Your Name'),
     *      'failedRecipients' => array('<EMAIL>' => 'Your Name'),
     *  ));
     * ```
     * @var array The Transport Options 
     */
    public $transportOptions = array();

    /**
     * @var string|array The sender of this message.
     */
    public $from = array('webmaster@localhost', 'Webmaster');

    /**
{'fraction_non_alphanumeric': 0.14612743227775657, 'fraction_numerical': 0.006867607783288821, 'mean_word_length': 2.2748282323547784, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1838860', 'n_tokens_mistral': 1648, 'n_tokens_neox': 1590, 'n_words': 455}