Please help - ERRORS with HtmlMimeMail

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Please help - ERRORS with HtmlMimeMail

    I am sending a simple html email using php, with the following code to send
    it:

    //HTML Email
    $html = "$msgtext";
    // replace variables with user data
    $mail = new htmlMimeMail();
    $mail->setHtml($html);
    $mail->setReturnPath(SENDER_EMAIL);
    $mail->setFrom('"ACIC" [email]blah@blahblah.com[/email]');
    $mail->setSubject("$subject");
    $mail->setHeader("X-Mailer", "PHP");
    $mail->setHeader("X-Priority", SEND_PRIORITY);
    $mail->buildMessage();
    $result = $mail->send(array("\"$FirstName $LastName\"
    <$Email>"));

    But when I send people messages, they reply to me saying my emails look like
    this, with many = signs in them:


    Hi Laura,

    I see that you h= aven't had a chance to look at our agreement yet. Please
    click here to t= ake a look at it.

    If you like what you read then please do fax it back to us at your earli=
    est convenience and we will guide you through the next stage of the process.

    We have trie= d to make the agreement itself as straightforward as possible,
    but if there are any points that need clarification, please just ask me.

    Lastly, could you please let me know if you still intend to immigrate to=
    Canada or if you've changed your mind?



    Any ideas?



    Thanks,

    Ryan

    Canadian Programmer


    ACIC Guest

  2. Similar Questions and Discussions

    1. htmlMimeMail - Mail subjects with german umlauts
      Hi, we use htmlMimeMail-2.5.1 (http://www.phpguru.org/mime.mail.html) to send mails. If I send an e-mail with the subject "Das Öl - Öl Öl - Ö...
    2. CF4.5 Errors in logs and Unix 111 errors!
      :confused; Hi All, I have been getting a lot of Unix 111 errors and there are various errors in my coldfusion logs. I can't find any resources...
    3. supress errors at the page level? Undefined index errors.
      I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in...
    4. Class htmlMimeMail does not work with php 4.3.3
      Hallo The Class htmlMimeMail (from de.comp.lang.php.* FAQ) does not work with PHP 4.3.3, before with PHP 4.2.3 it went well. If I send a...
    5. Pop-up window errors:"translators not loaded due to errors"
      Thanks for getting back to me Murray. In answer to your questions: 0. What is your version of Dreamweaver? And when you right click on the DW...
  3. #2

    Default Re: Please help - ERRORS with HtmlMimeMail

    ACIC wrote:
    > But when I send people messages, they reply to me saying my emails
    > look like this, with many = signs in them:
    >
    The class appears to send the message with quoted printable encoding, but
    forgets to put the header in.

    I don't know how this class works, but you could try the following:

    * Add a setHeader("Content-Transfer-Encoding", "quoted-printable") call
    * Change the setHTML call to:
    $mail->setHtml("Content-Transfer-Encoding:
    quoted-printable\r\n\r\n$html");
    * Wait for Manuel Lemos to advertise his class ;-)


    JW



    Janwillem Borleffs Guest

  4. #3

    Default Please help - ERRORS with HtmlMimeMail

    Better way:
    setHTMLEncoding("quoted-printable")

    But "quoted_printable" is default value. If you are sending non-ASCII characters, it's worth a try:
    setHTMLEncoding("8bit");
    setHTMLCharset("_your_charset_");
    sorx00 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139