Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. html tags formatted email not working in windows server outlook

html tags formatted email not working in windows server outlook

Scheduled Pinned Locked Moved Java
javahtmlsysadminwindows-adminhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    khurram_shahzad
    wrote on last edited by
    #1

    Hi, I've a simple java code to send email to from my application, but issue is with formatting of emails, previously i had written plain text mail and used \t and \n to format email and format was correct on my laptop outlook using windows7 but when i openned this in outlook on windows server 2003 then the format was not correct. then I used html tag to format the email body and that was again fine on outlook2007 on my laptop using windows7, outlook-6 on another pc using windows-XP, but again on outlook-6 on windows server 2003 the format was not correct even its like that on windows server it removed all html like un-formatted plain text mail. so please any idea to format the email so that it works on almost all known OS's I've used

    MimeMessage msg = new MimeMessage(mailSession);

    object to send email with for html msg type used is "text/html"

    msg.setContent(message, "text/html");

    THANKS I advance.

    J T 2 Replies Last reply
    0
    • K khurram_shahzad

      Hi, I've a simple java code to send email to from my application, but issue is with formatting of emails, previously i had written plain text mail and used \t and \n to format email and format was correct on my laptop outlook using windows7 but when i openned this in outlook on windows server 2003 then the format was not correct. then I used html tag to format the email body and that was again fine on outlook2007 on my laptop using windows7, outlook-6 on another pc using windows-XP, but again on outlook-6 on windows server 2003 the format was not correct even its like that on windows server it removed all html like un-formatted plain text mail. so please any idea to format the email so that it works on almost all known OS's I've used

      MimeMessage msg = new MimeMessage(mailSession);

      object to send email with for html msg type used is "text/html"

      msg.setContent(message, "text/html");

      THANKS I advance.

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      I can only note that my email client always displays html as text because I specifically set it up that way.

      1 Reply Last reply
      0
      • K khurram_shahzad

        Hi, I've a simple java code to send email to from my application, but issue is with formatting of emails, previously i had written plain text mail and used \t and \n to format email and format was correct on my laptop outlook using windows7 but when i openned this in outlook on windows server 2003 then the format was not correct. then I used html tag to format the email body and that was again fine on outlook2007 on my laptop using windows7, outlook-6 on another pc using windows-XP, but again on outlook-6 on windows server 2003 the format was not correct even its like that on windows server it removed all html like un-formatted plain text mail. so please any idea to format the email so that it works on almost all known OS's I've used

        MimeMessage msg = new MimeMessage(mailSession);

        object to send email with for html msg type used is "text/html"

        msg.setContent(message, "text/html");

        THANKS I advance.

        T Offline
        T Offline
        TorstenH
        wrote on last edited by
        #3

        Is Windows Server 2003 in combination with Outlook 6 really a goal to go for? Is it in the specification? Otherwise I would ignore it. WIN7 and XP is common used. What is e.g. Thunderbird saying? Can you compare the raw email received by the different systems?

        regards Torsten When I'm not working

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups