Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $mail = new PHPMailer();
- $mail->CharSet = 'UTF-8';
- $mail->isSMTP();
- $mail->Host = '**aqui vai o servidor de email fornecido pelo host**';
- $mail->SMTPAuth = true;
- $mail->Username = '**email de envio**';
- $mail->Password = '**senha**';
- $mail->SMTPSecure = 'tls';
- $mail->Port = 587;
- $mail->setFrom('contato@e-ducar.info', "Contato Plataforma E-ducar");
- $mail->addAddress("$email");
- $mail->addReplyTo('backup@e-ducar.info');
- $mail->isHTML(true);
- $mail->Subject = 'Plataforma E-ducar - Redefinição de Senha';
- $mail->Body = "<h1>Redefinição de Senha</h1><br>"
- . "<h3>Clique aqui para ir para a página de recadastro de senha</h3>"
- . "<br><br>Atenciosamente,"
- . "<br>Equipe E-ducar";
- $mail->AltBody = "Aqui vai o texto de teste";
- if(!$mail->send()) {
- echo "<script>alert('Message could not be sent')</script>";
- echo "<script>alert('Mailer Error: " . $mail->ErrorInfo . "')</script>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement