Last active
August 2, 2016 16:12
-
-
Save dungam/f110e435520936313d08ba5244ac3de4 to your computer and use it in GitHub Desktop.
Maitrap.io settings in PHPMailer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Constructor | |
* @param boolean $exceptions Should we throw external exceptions? | |
*/ | |
public function __construct($exceptions = false) | |
{ | |
$this->exceptions = ($exceptions == true); | |
// Mailtrap settings | |
$this->isSMTP(); | |
$this->Host = 'mailtrap.io'; | |
$this->SMTPAuth = true; | |
$this->Username = '333sfsfd45dsg'; // your mailtrap username. This is not real | |
$this->Password = '8sfsfd73452352'; // your mailtrap password. This is not real | |
$this->SMTPSecure = 'tls'; | |
$this->Port = 2525; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment