Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("class.phpmailer.php");
- $mail -> charSet = "UTF-8";
- $mail = new PHPMailer();
- $mail->IsSMTP();
- $mail->Host = "smtp.mydomain.org";
- $mail->From = "name@mydomain.org";
- $mail->SMTPAuth = true;
- $mail->Username ="username";
- $mail->Password="passw";
- //$mail->FromName = $header;
- $mail->FromName = mb_convert_encoding($header, "UTF-8", "auto");
- $mail->AddAddress($emladd);
- $mail->AddAddress("mytest@gmail.com");
- $mail->AddBCC('mytest2@mydomain.org', 'firstadd');
- $mail->Subject = $sub;
- $mail->Body = $message;
- $mail->WordWrap = 50;
- if(!$mail->Send()) {
- echo 'Message was not sent.';
- echo 'Mailer error: ' . $mail->ErrorInfo;
- }
- $mail -> charSet = "UTF-8";
- $mail->CharSet = 'UTF-8';
- $mail->Encoding = 'base64';
- $mail -> CharSet = "UTF-8";
- $mail = new PHPMailer();
- $mail = new PHPMailer();
- $mail->CharSet = "UTF-8";
- $mail->FromName = utf8_decode($_POST['name']);
- $mail->CharSet = "UTF-8";
- $mail->CharSet = "utf-8";
- $mail = new PHPMailer();
- $mail->CharSet = "UTF-8";
- $mail->Encoding = "16bit";
- $mail->CharSet = "UTF-8"
- $mail = new PHPMailer();
- $mail->From = 'midireccion@email.com';
- $mail->FromName = 'Mi nombre';
- $mail->AddAddress('emaildestino@email.com');
- $mail->Subject = 'Prueba';
- $mail->Body = '';
- $mail->IsHTML(true);
- // Active condition utf-8
- $mail->CharSet = 'UTF-8';
- // Send mail
- $mail->Send();
- $mail = new PHPMailer();
- $mail -> CharSet = "UTF-8";
Add Comment
Please, Sign In to add comment