PHP Classes

File: examples/example1/config/myMail.php

Recommend this page to a friend!
  Classes of Slawomir Kaleta   Dframe MyMail   examples/example1/config/myMail.php   Download  
File: examples/example1/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: Update myMail.php
Resolved #5, camelCase Config
Resolved #4, Update To PHPMailer 6.x
Date: 3 years ago
Size: 661 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' => 'Sender Name',

   
/**
     * Default sender's address
     */
   
'senderEmail' => 'senderMail@mail'
];