Skip to content

Instantly share code, notes, and snippets.

@Ledzz
Created February 13, 2017 09:43
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Ledzz/13cabb1d48388ac327b1f621065250d1 to your computer and use it in GitHub Desktop.
<?
$mail = new PHPMailer;
// $mail->SMTPDebug = 3; Раскомментировать, чтобы увидеть отладочные сообщения
$mail->setFrom('email@sender.ru', 'Sender name');
$mail->addAddress('email@reciever.ru');
$mail->Host = 'smtp.host.com';
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'usename'; // SMTP username
$mail->Password = 'password';
$mail->Port = 25;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment