Professional Web Applications Themes

htmlMimeMail - Mail subjects with german umlauts - PHP Development

Hi, we use htmlMimeMail-2.5.1 ([url]http://www.phpguru.org/mime.mail.html[/url]) to send mails. If I send an e-mail with the subject "Das l - l l - - test test" I will receive an e-mail with the subject "Das l - ll - - test test". Some spaces have been removed. Within the mail text I have no problems with german umlauts. Only in the subject. Does anybody know a solution? A modified version of the script is used in tikiwiki ([url]http://tikiwiki.org/[/url]). Does it work there? bye, Markus -- Pleasy reply to the newsgroup. Please remove the _spam from my ...

  1. #1

    Default htmlMimeMail - Mail subjects with german umlauts

    Hi,

    we use htmlMimeMail-2.5.1 ([url]http://www.phpguru.org/mime.mail.html[/url]) to send
    mails.

    If I send an e-mail with the subject
    "Das l - l l - - test test" I will receive an e-mail with the
    subject
    "Das l - ll - - test test". Some spaces have been removed.

    Within the mail text I have no problems with german umlauts. Only in the
    subject.

    Does anybody know a solution?

    A modified version of the script is used in tikiwiki ([url]http://tikiwiki.org/[/url]).
    Does it work there?

    bye,
    Markus

    --
    Pleasy reply to the newsgroup.
    Please remove the _spam from my e-mail adress if you send me an e-mail


    Markus Weber Guest

  2. #2

    Default Re: htmlMimeMail - Mail subjects with german umlauts

    Hello,

    On 10/27/2003 07:22 AM, Markus Weber wrote:
    > we use htmlMimeMail-2.5.1 ([url]http://www.phpguru.org/mime.mail.html[/url]) to send
    > mails.
    >
    > If I send an e-mail with the subject
    > "Das l - l l - - test test" I will receive an e-mail with the
    > subject
    > "Das l - ll - - test test". Some spaces have beenremoved.
    >
    > Within the mail text I have no problems with german umlauts. Only in the
    > subject.
    >
    > Does anybody know a solution?
    You may want to try this other class that can be used to send messages
    with umlaut characters in the subject or other headers or the message
    body without any problems:

    [url]http://www.phpclasses.org/mimemessage[/url]

    --

    Regards,
    Manuel Lemos

    Free ready to use OOP components written in PHP
    [url]http://www.phpclasses.org/[/url]

    Manuel Lemos Guest

  3. #3

    Default Re: htmlMimeMail - Mail subjects with german umlauts

    Hi Manuel,
    > > we use htmlMimeMail-2.5.1 ([url]http://www.phpguru.org/mime.mail.html[/url]) to
    > > send
    > > mails.
    > >
    > > If I send an e-mail with the subject
    > > "Das l - l l - - test test" I will receive an e-mail with the
    > > subject
    > > "Das l - ll - - test test". Some spaces have been removed.
    > >
    > > Within the mail text I have no problems with german umlauts. Only in the
    > > subject.
    > >
    > > Does anybody know a solution?
    >
    > You may want to try this other class that can be used to send messages
    > with umlaut characters in the subject or other headers or the message
    > body without any problems:
    >
    > [url]http://www.phpclasses.org/mimemessage[/url]
    >
    I use your class now. Umlauts can be used without problems in the subject.

    Can I pass an HTML-Part which I have created with
    CreateQuotedPrintableHTMLPart ($html_part) to the AddAlternativeMultipart
    function? It seems to work.
    >
    > Regards,
    > Manuel Lemos
    >
    bye,
    Markus



    Markus Weber Guest

  4. #4

    Default Re: htmlMimeMail - Mail subjects with german umlauts

    Hello,

    On 11/03/2003 07:47 AM, Markus Weber wrote:
    >>>we use htmlMimeMail-2.5.1 ([url]http://www.phpguru.org/mime.mail.html[/url]) to
    >>>send
    >>>mails.
    >>>
    >>>If I send an e-mail with the subject
    >>>"Das l - l l - - test test" I will receive ane-mail with the
    >>>subject
    >>>"Das l - ll - - test test". Some spaces have been removed.
    >>>
    >>>Within the mail text I have no problems with german umlauts. Only in the
    >>>subject.
    >>>
    >>>Does anybody know a solution?
    >>
    >>You may want to try this other class that can be used to send messages
    >>with umlaut characters in the subject or other headers or the message
    >>body without any problems:
    >>
    >>[url]http://www.phpclasses.org/mimemessage[/url]
    >>
    >
    >
    > I use your class now. Umlauts can be used without problems in the subject.
    >
    > Can I pass an HTML-Part which I have created with
    > CreateQuotedPrintableHTMLPart ($html_part) to the AddAlternativeMultipart
    > function? It seems to work.
    Yes, actually you should always have an alternative text part for each
    HTML part. They must be added by the correct order or else HTML capable
    mail programs will show the text part instead of the HTML part. Just
    take a look at the supplied example to compose HTML messages.


    --

    Regards,
    Manuel Lemos

    Free ready to use OOP components written in PHP
    [url]http://www.phpclasses.org/[/url]

    Manuel Lemos Guest

  5. #5

    Default Re: htmlMimeMail - Mail subjects with german umlauts

    Hi

    To solve htmlMimeMail issue which removes spaces in subject of emails with NON-ASCII characters you may do this:

    Open htmlMimeMail.php

    Find:
    preg_match_all('/(\w*[\x80-\xFF]+\w*)/', $input, $matches);
    Replace:
    preg_match_all('/(\w*[\x80-\xFF[:blank:]]+\w*)/', $input, $matches);

    And save the file.

    This took my time and I hope this would save others time in future.
    Vahid Mafi Guest

Similar Threads

  1. Please help - ERRORS with HtmlMimeMail
    By ACIC in forum PHP Development
    Replies: 2
    Last Post: October 25th, 02:49 PM
  2. Problems with Umlauts
    By robert_s in forum Coldfusion Server Administration
    Replies: 3
    Last Post: April 1st, 01:05 AM
  3. Which PHP group for which subjects?
    By Stephen Poley in forum PHP Development
    Replies: 5
    Last Post: February 26th, 12:32 PM
  4. Class htmlMimeMail does not work with php 4.3.3
    By Roswitha Schoppe-Jantzen in forum PHP Development
    Replies: 1
    Last Post: September 5th, 01:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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