Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once 'class.phpmailer.php';
- $mail = new PHPMailer();
- $mail -> isSMTP();
- $mail -> Host = 'smtp.mail.ru';
- $mail -> SMTPAuth = true;
- $mail -> Username = 'test.test@mail.ru';
- $mail -> Password = 'testtest';
- $mail -> SMTPSecure = 'ssl';
- $mail -> Port = 465;
- $mail -> CharSet = 'UTF-8';
- $mail -> setFrom('test.test@mail.ru','Александр');
- $mail -> addAddress('AlexKul1985sanshoy@mail.ru','Александр');
- $mail -> isHTML(true);
- $mail -> Subject = 'Проверка связи!';
- $mail -> Body = 'Привет, мир!<p>Это <b>HTML !!!</b></p>';
- $mail -> AltBody = 'Привет мир!Это альтернативное письмо!';
- $mail -> send();
- echo $mail -> ErrorInfo;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement