Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->isSMTP();
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = 'ssl';
- $mail->Host = 'smtp.gmail.com';
- $mail->Port = 465;
- $mail->CharSet = 'UTF-8';
- $mail->Username = 'mail@gmail.com';
- $mail->Password = 'haslo';
- $mail->isHTML(true);
- $mail->setFrom('user@gmail.com', 'Name');
- $mail->Subject = 'New message';
- $mail->Body = 'message';
- $mail->addAddress('mail.to@gmail.com', 'Page');
- $mail->Send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement