Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use PHPMailer\src\PHPMailer;
- use PHPMailer\src\SMTP;
- use PHPMailer\src\Exception;
- $mail = new PHPMailer(true);
- $mail->Host = 'geheim';
- $mail->SMTPAuth = true;
- $mail->Username = 'geheim';
- $mail->Password = 'geheim';
- $mail->Port = geheim;
- $mail->setFrom('Email', 'geheim');
- $mail->addAddress('Email', 'geheim');
- $mail->Subject = 'Here is the subject';
- $mail->Body = 'This is the HTML message body <b>in bold!</b>';
- $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
- $mail->send();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement