Different mail body by different mail way?

Discussion in 'Email Discussions' started by MA555, Oct 16, 2015.

  1. MA555

    MA555 New Email

    Joined:
    Oct 16, 2015
    Messages:
    2
    Likes Received:
    0
    Greetings community,

    I have followed phenomenon:
    I have an opensource application, that has a function to reset the password.
    This function send a mail the the user.

    Has the mail receiver a microsoft exchange server, the mail looks like correct:
    ---------------------------------------------------
    From: support@domain.com
    mailbody ---------------------------------------
    Dear Testuser,
    your new password is: XYZ
    --------------------------------------------------

    If send the application the same mail to a normal IMAP account, the information are worng:---------------------------------------------------
    From: <this field is empty>
    mailbody ---------------------------------------
    =?UTF-8?B?b3J0cy4=?=
    Content-Type: text/plain; charset=UTF-8; format=flowed
    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    From: support@domain.com

    Dear Testuser,
    your new password is: XYZ
    --------------------------------------------------

    In both cases are the same application.
    What could be the reason here?
    Thank you very much for a hint!
    Michael
     


  2. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    Which provider is the "normal IMAP account"? UTF-8 should be the right choice.

    I think the problem is either with the client reading the email at the IMAP provider, or that somehow the email isn't encoded correctly. Broken lines, busted base64, that sort of thing.
     

  3. MA555

    MA555 New Email

    Joined:
    Oct 16, 2015
    Messages:
    2
    Likes Received:
    0
    How can I find, if there is a broken line or a bug by encoding?
     
  4. popowich

    popowich EQ Forum Admin Staff Member

    Joined:
    Aug 12, 2008
    Messages:
    8,983
    Likes Received:
    120
    If it's working at all I'm guessing that's not actually the problem.

    What version of exchange server is involved?

    It's possible that exchange is the problem and not the email itself.

    Can you try a few more email services to verify that it's only that particular exchange server or it's IMAP server?

    If it's only exchange, I can help you track down the fix if I know the specific version and service pack level of that server.
     

Want to reply or ask your own question?

It only takes a minute to sign up (and it's free!). Click the orange sign up button to choose a username and then you can ask your own questions on the forum.
Loading...