Configuration

Instalation

From console level, launch the command composer*

$ composer require dframe/mymail

Or download manual https://github.com/dframe/mymail/releases

The myMail library is a simple wrapper, this time for phpmailer. In a simple way, you can set data for connection in config.

return [
    /**
     * Specify main and backup SMTP servers
     */
    'hosts' => ['primaryHostName.tld', 'backupHostName.tld'],

    /**
     * Enable SMTP authentication
     */
    'smtpAuth' => true,

    /**
     * SMTP username
     */
    'username' => '[email protected]',

    /**
     * SMTP password
     */
    'password' => '',

    /**
     * Enable TLS encryption, `ssl` also accepted
     */
    'smtpSecure' => 'tls',

    /**
     * Port
     */
    'port' => 587,

    /**
     * Name of default sender
     */
    'senderName' => PROJECT_NAME,

    /**
     * Default sender's address
     */
    'senderEmail' => '[email protected]'
];
Edit page (Configuration)

Dframe/myMail