Download Config file.
before <?php
return array(
'Hosts' => ['example@mail'], // Specify main and backup SMTP servers
'SMTPAuth' => true, // Enable SMTP authentication
'Username' => 'Username@mail', // SMTP username
'Password' => '', // SMTP password
'SMTPSecure' => 'tls', // Enable TLS encryption, `ssl` also accepted
'Port' => 587, // Port
'senderName' => APP_NAME, // Name of default sender
'senderMail' => 'senderMail@mail' // Default sender's address
);
After
<?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'
];
Class Call
before <?php
$MyMail = new MyMail(); // Load Configu
$MyMail->mailObject->isSMTP();
$MyMail->mailObject->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
After <?php
$MyMail = new MyMail($config); // Load Configu
$MyMail->mail->isSMTP();
$MyMail->mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
|