HELP - phpMailer problem!

Discussion in 'PHP' started by shedokan, Dec 11, 2007.

  1. #1
    When I try to send emails with this script it sends gibberish text instead of hebrew text:

    ×’×’×’×’×’×’×’×’×’×’×’×’×’×’×’×’×’×’×’×’×’×’
    Code (markup):
    here's the script:

    <?php
    // Enter path to class.phpmailer.php if this form is not in the same folder as it.
    require("class.phpmailer.php");
    $mailer = new PHPMailer();
    $mailer->IsSMTP();
    $mailer->Host = 'ssl://smtp.gmail.com:465';
    $mailer->SMTPAuth = TRUE;
    $mailer->Username = 'name@gmail.com';  // Change this to your gmail adress
    $mailer->Password = 'pass';  // Change this to your gmail password
    $mailer->From = $email;  // This HAS TO be your gmail address or it won't work!
    $mailer->FromName = $name; // This is the from name in the email, you can put anything you like here
    $mailer->Subject = $subject;
    $mailer->Body = $emailcontent;
    $phpmailer->CharSet = 'utf-8';
    $mailer->AddAddress($sendto);
      if(!$mailer->Send())
       {
          echo "Message Sent<br/ >";
          echo "Error: " . $mailer->ErrorInfo;
       }
     ?>
    PHP:
    and I'm trying to send hebrew characters(utf-8).
     
    shedokan, Dec 11, 2007 IP
  2. selling vcc

    selling vcc Peon

    Messages:
    361
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What encoding you use for your file ? I suggest that you se utf-8 too
     
    selling vcc, Dec 11, 2007 IP