Advertisement
DeathMater

Untitled

Nov 24th, 2019
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. use PHPMailer\src\PHPMailer;
  2. use PHPMailer\src\SMTP;
  3. use PHPMailer\src\Exception;
  4. $mail = new PHPMailer(true);
  5. $mail->Host = 'geheim';
  6. $mail->SMTPAuth = true;
  7. $mail->Username = 'geheim';
  8. $mail->Password = 'geheim';
  9. $mail->Port = geheim;
  10. $mail->setFrom('Email', 'geheim');
  11. $mail->addAddress('Email', 'geheim');
  12. $mail->Subject = 'Here is the subject';
  13. $mail->Body = 'This is the HTML message body <b>in bold!</b>';
  14. $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
  15. $mail->send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement