Created
February 13, 2017 09:43
-
-
Save Ledzz/13cabb1d48388ac327b1f621065250d1 to your computer and use it in GitHub Desktop.
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
<? | |
$mail = new PHPMailer; | |
// $mail->SMTPDebug = 3; Раскомментировать, чтобы увидеть отладочные сообщения | |
$mail->setFrom('[email protected]', 'Sender name'); | |
$mail->addAddress('[email protected]'); | |
$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