Skip to content

Instantly share code, notes, and snippets.

@dungam
Last active August 2, 2016 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dungam/f110e435520936313d08ba5244ac3de4 to your computer and use it in GitHub Desktop.
Save dungam/f110e435520936313d08ba5244ac3de4 to your computer and use it in GitHub Desktop.
Maitrap.io settings in PHPMailer
<?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