Guest User

Untitled

a guest
Sep 7th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. require("class.phpmailer.php");
  2. $mail -> charSet = "UTF-8";
  3. $mail = new PHPMailer();
  4. $mail->IsSMTP();
  5. $mail->Host = "smtp.mydomain.org";
  6. $mail->From = "name@mydomain.org";
  7. $mail->SMTPAuth = true;
  8. $mail->Username ="username";
  9. $mail->Password="passw";
  10. //$mail->FromName = $header;
  11. $mail->FromName = mb_convert_encoding($header, "UTF-8", "auto");
  12. $mail->AddAddress($emladd);
  13. $mail->AddAddress("mytest@gmail.com");
  14. $mail->AddBCC('mytest2@mydomain.org', 'firstadd');
  15. $mail->Subject = $sub;
  16. $mail->Body = $message;
  17. $mail->WordWrap = 50;
  18. if(!$mail->Send()) {
  19. echo 'Message was not sent.';
  20. echo 'Mailer error: ' . $mail->ErrorInfo;
  21. }
  22.  
  23. $mail -> charSet = "UTF-8";
  24.  
  25. $mail->CharSet = 'UTF-8';
  26.  
  27. $mail->Encoding = 'base64';
  28.  
  29. $mail -> CharSet = "UTF-8";
  30. $mail = new PHPMailer();
  31.  
  32. $mail = new PHPMailer();
  33. $mail->CharSet = "UTF-8";
  34.  
  35. $mail->FromName = utf8_decode($_POST['name']);
  36.  
  37. $mail->CharSet = "UTF-8";
  38.  
  39. $mail->CharSet = "utf-8";
  40.  
  41. $mail = new PHPMailer();
  42. $mail->CharSet = "UTF-8";
  43. $mail->Encoding = "16bit";
  44.  
  45. $mail->CharSet = "UTF-8"
  46.  
  47. $mail = new PHPMailer();
  48. $mail->From = 'midireccion@email.com';
  49. $mail->FromName = 'Mi nombre';
  50. $mail->AddAddress('emaildestino@email.com');
  51. $mail->Subject = 'Prueba';
  52. $mail->Body = '';
  53. $mail->IsHTML(true);
  54.  
  55.  
  56. // Active condition utf-8
  57. $mail->CharSet = 'UTF-8';
  58.  
  59.  
  60. // Send mail
  61. $mail->Send();
  62.  
  63. $mail = new PHPMailer();
  64. $mail -> CharSet = "UTF-8";
Add Comment
Please, Sign In to add comment