CDONTS multipart/alternative text content

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil W

    CDONTS multipart/alternative text content

    I'm using CDONTS and am trying to send an email out which displays in HTML
    for HTML-enabled clients, and plain text for non-HTML clients.

    Unfortunately I am using IIS4 so CDOSYS is not available (so I can't use the
    handy .Textbody or .HTMLBody properties). How would I go about it with
    CDONTS?

    Thanks,
    Phil


  • Ray at

    #2
    Re: CDONTS multipart/alternative text content

    Use the .bodyformat and .mailformat properties.
    Microsoft Support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft Copilot, Microsoft 365, Windows, Surface, and more.


    Ray at work

    "Phil W" <youngpip@remov ethisbit_hotmai l.com> wrote in message
    news:DTROa.1213 1$4O4.1221177@n ewsfep2-win.server.ntli .net...[color=blue]
    > I'm using CDONTS and am trying to send an email out which displays in HTML
    > for HTML-enabled clients, and plain text for non-HTML clients.
    >
    > Unfortunately I am using IIS4 so CDOSYS is not available (so I can't use[/color]
    the[color=blue]
    > handy .Textbody or .HTMLBody properties). How would I go about it with
    > CDONTS?
    >
    > Thanks,
    > Phil
    >
    >[/color]


    Comment

    • Aaron Bertrand - MVP

      #3
      Re: CDONTS multipart/alternative text content

      > Use the .bodyformat and .mailformat properties.[color=blue]
      > http://support.microsoft.com/?id=189945[/color]

      Ray, this article doesn't really tell how to send a plain text alternative
      in case the end user doesn't support HTML mail. I get a lot of messages
      like this, that only have an HTML portion, so I can't read them... they're
      almost always spam of some kind, and go straight to the bit bucket anyway.


      Comment

      • Ray at

        #4
        Re: CDONTS multipart/alternative text content

        No, it doesn't, but he already knows how to send plain text messages. Plain
        text vs. html is a business decision, I feel. I don't think many people are
        still using PINE or anything. And since these business decisions will first
        be made by accounting, who will see there is no additional (noticeable,
        anyway) cost in sending HTML vs. plain text, then the marketing department
        will get to decide. And you know what they'll pick.

        But, ideally, you'd do what he's doing. Let the recipient specify his
        preference. Good job Phil.

        Ray at work

        "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
        news:%23p9EE3hR DHA.1920@TK2MSF TNGP11.phx.gbl. ..[color=blue][color=green]
        > > Use the .bodyformat and .mailformat properties.
        > > http://support.microsoft.com/?id=189945[/color]
        >
        > Ray, this article doesn't really tell how to send a plain text alternative
        > in case the end user doesn't support HTML mail. I get a lot of messages
        > like this, that only have an HTML portion, so I can't read them... they're
        > almost always spam of some kind, and go straight to the bit bucket anyway.
        >
        >[/color]


        Comment

        • Ray at

          #5
          Re: CDONTS multipart/alternative text content

          Yeah, I understand. I'm not as opposed to HTML e-mail as I know you are,
          and it is my format of choice for personal e-mail. E-mail lists and all
          that, plain text, of course. MS is a bit late by only getting around to the
          option of stripping html in OL2003...

          And PLEASE add /outnews to your msimn.exe shortcut. I will make fun of you
          if you use Outlook Express instead of Outlook Newsreader. Yeah, I know it's
          the same thing, but I will make fun of you anyway.

          Ray at work

          "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
          news:%23bRn6AiR DHA.2148@TK2MSF TNGP10.phx.gbl. ..[color=blue][color=green]
          > > No, it doesn't, but he already knows how to send plain text messages.[/color]
          > Plain[color=green]
          > > text vs. html is a business decision, I feel. I don't think many people[/color]
          > are[color=green]
          > > still using PINE or anything.[/color]
          >
          > Ideally, you would send both. I am currently writing this in Outlook
          > Express 6.0, on Windows Server 2003, and if you sent me an HTML e-mail I
          > would not see the HTML content. Just because HTML is "newer technology"
          > than plain text hasn't stopped many people from completely disabling HTML
          > viewing, and this is becoming easier with newer versions of both Outlook[/color]
          and[color=blue]
          > Outlook Express. Whether or not your end user is using Pine in no way
          > ensures that they will or won't see a message that is *only* offered in[/color]
          HTML[color=blue]
          > format.
          >
          > A
          >
          >[/color]


          Comment

          • Phil W

            #6
            Re: CDONTS multipart/alternative text content

            Thanks for the replies guy. Personally I'd just send all emails Plain Text
            but the person I am doing this for insists on it being HTML, but with a
            Plain text alternative for those who have disabled HTML or use email clients
            that don't support it.

            I'd got as far as the .Bodyformat and .Mailformat properties, but can't
            figure out how to define the text-only portion of the mail.

            "Ray at <%=sLocation% >" <ask@me.forit > wrote in message
            news:OMKnROiRDH A.2232@TK2MSFTN GP11.phx.gbl...[color=blue]
            > Yeah, I understand. I'm not as opposed to HTML e-mail as I know you are,
            > and it is my format of choice for personal e-mail. E-mail lists and all
            > that, plain text, of course. MS is a bit late by only getting around to[/color]
            the[color=blue]
            > option of stripping html in OL2003...
            >
            > And PLEASE add /outnews to your msimn.exe shortcut. I will make fun of[/color]
            you[color=blue]
            > if you use Outlook Express instead of Outlook Newsreader. Yeah, I know[/color]
            it's[color=blue]
            > the same thing, but I will make fun of you anyway.
            >
            > Ray at work
            >
            > "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
            > news:%23bRn6AiR DHA.2148@TK2MSF TNGP10.phx.gbl. ..[color=green][color=darkred]
            > > > No, it doesn't, but he already knows how to send plain text messages.[/color]
            > > Plain[color=darkred]
            > > > text vs. html is a business decision, I feel. I don't think many[/color][/color][/color]
            people[color=blue][color=green]
            > > are[color=darkred]
            > > > still using PINE or anything.[/color]
            > >
            > > Ideally, you would send both. I am currently writing this in Outlook
            > > Express 6.0, on Windows Server 2003, and if you sent me an HTML e-mail I
            > > would not see the HTML content. Just because HTML is "newer technology"
            > > than plain text hasn't stopped many people from completely disabling[/color][/color]
            HTML[color=blue][color=green]
            > > viewing, and this is becoming easier with newer versions of both Outlook[/color]
            > and[color=green]
            > > Outlook Express. Whether or not your end user is using Pine in no way
            > > ensures that they will or won't see a message that is *only* offered in[/color]
            > HTML[color=green]
            > > format.
            > >
            > > A[/color][/color]


            Comment

            • Aaron Bertrand - MVP

              #7
              Re: CDONTS multipart/alternative text content

              > I'd got as far as the .Bodyformat and .Mailformat properties, but can't[color=blue]
              > figure out how to define the text-only portion of the mail.[/color]

              I don't think you can do it with CDONTS. Insist to the person that insists
              on HTML e-mail that to support plain text clients he's going to have to
              either use a 3rd party component or spring for Windows 2000 so he can use
              CDO.Message. There are some samples with a few different components near
              the bottom of www.aspfaq.com/2295


              Comment

              • Aaron Bertrand - MVP

                #8
                Re: CDONTS multipart/alternative text content

                > I would never choose to send two e-mails.

                That's not what I suggested at all. CDO.Message and ASPEmail (and surely
                others) have the ability to specify both an HTML portion and a plain text
                portion *for the same e-mail*...


                Comment

                • Ray at

                  #9
                  Re: CDONTS multipart/alternative text content

                  Oh. fine

                  he he...

                  Use Aaron's suggestion.

                  Ray at work


                  "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
                  news:uNBpUdkRDH A.2152@TK2MSFTN GP12.phx.gbl...[color=blue][color=green]
                  > > I would never choose to send two e-mails.[/color]
                  >
                  > That's not what I suggested at all. CDO.Message and ASPEmail (and surely
                  > others) have the ability to specify both an HTML portion and a plain text
                  > portion *for the same e-mail*...
                  >
                  >[/color]


                  Comment

                  • Phil W

                    #10
                    Re: CDONTS multipart/alternative text content

                    In the end I explained the situation to the customer and convinced him to
                    move to our W2K server. Have now got it set up as a multipart/alternative
                    mail with CDOSYS and it works really well.

                    Struggling to find a purely text-only client for Windows for testing though.
                    Will have to dig in the archives for an old, old copy of Eudora Light!

                    Cheers guys,
                    Phil

                    "Ray at <%=sLocation% >" <ask@me.forit > wrote in message
                    news:uoAm6lkRDH A.1896@TK2MSFTN GP12.phx.gbl...[color=blue]
                    > Oh. fine
                    >
                    > he he...
                    >
                    > Use Aaron's suggestion.
                    >
                    > Ray at work
                    >
                    > "Aaron Bertrand - MVP" <aaron@TRASHasp faq.com> wrote in message
                    > news:uNBpUdkRDH A.2152@TK2MSFTN GP12.phx.gbl...[color=green][color=darkred]
                    > > > I would never choose to send two e-mails.[/color]
                    > >
                    > > That's not what I suggested at all. CDO.Message and ASPEmail (and[/color][/color]
                    surely[color=blue][color=green]
                    > > others) have the ability to specify both an HTML portion and a plain[/color][/color]
                    text[color=blue][color=green]
                    > > portion *for the same e-mail*...[/color][/color]


                    Comment

                    Working...