Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
1,091
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $mail = new PHPMailer();
  2. $mail->IsSMTP(); $mail->SMTPDebug = 0;
  3. $mail->SMTPAuth = false; $mail->IsHTML(true);
  4.  
  5. $mail->Host = "mail.smtp2go.com";
  6. $mail->Username = "kshost"; $mail->Password = "YWF4NHVyM3RlZjAw";
  7. $mail->From = "contato@kshost.com.br"; $mail->FromName = utf8_decode("KSHOST");
  8.  
  9. $mail->AddAddress($email);
  10. $mail->IsHTML(true); $mail->CharSet = 'iso-8859-1';
  11. $mail->Subject = ($assunto);
  12.  
  13. $corpoDoEmail = str_replace( $email, $email, $corpoDoEmail );
  14. $mail->Body = ($corpoDoEmail); $SendOK = $mail->Send();
  15.  
  16. $mail->ClearAllRecipients(); $mail->ClearAttachments();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement