PHP Classes

File: examples/example2/app/Config/myMail.php

Recommend this page to a friend!
  Classes of Slawomir Kaleta   Dframe MyMail   examples/example2/app/Config/myMail.php   Download  
File: examples/example2/app/Config/myMail.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Dframe MyMail
Compose and send email messages using PHPMailer
Author: By
Last change:
Date: 3 years ago
Size: 660 bytes
 

Contents

Class file image Download
<?php

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

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

   
/**
     * SMTP username
     */
   
'username' => 'Username@mail',

   
/**
     * 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' => 'senderMail@mail'
];