Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once 'PHPMailerAutoload.php';
- $mail = new PHPMailer();
- $mail->isSMTP();
- $mail->Host = "smtp.gmail.com";
- $mail->Port = 587;
- $mail->SMTPSecure = 'tls';
- $mail->SMTPAuth = true;
- $mail->Username = "";
- $mail->Password = "";
- $mail->setFrom("", "");
- $mail->addAddress("");
- $mail->Subject = "";
- $mail->msgHTML("");
- $mail->AltBody = "";
- if ($mail->send()) {
- // Se enviar
- } else {
- // Se não enviar
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement