Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mail= new PHPMailer;
- $mail->IsSMTP();
- $mail->SMTPDebug = false;
- $mail->SMTPAuth = true;
- $mail->SMTPSecure = 'ssl';
- $mail->Host = 'smtp.gmail.com';
- $mail->Port = 465;
- $mail->Username = 'thaisg.redes@gmail.com';
- $mail->Password = 'tnci123';
- $mail->SetFrom('thaisg.redes@gmail.com', 'TNCI');
- $mail->addAddress('teste@email.com','teste'); //email empresa
- $mail->Subject=("SISTEMA DE CHAMADOS TNCI");
- $mail->msgHTML("TESTE");
- if ($mail->send()){
- $ok = true;
- }else{
- $ok = false;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement