replacing breaks

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

    replacing breaks

    I have an email form page, and the body of the message is in a textarea. In
    testing, I noticed that the paragraph breaks weren't showing up in my
    web-based email that I sent to myself. So I put in a replace function to
    replace vbcrlf with < br >. (I put those spaces in there for the purpose of
    this post only).

    Now, some email recipients are seeing the actual BR tag, depending on if
    they have chosen to view emails as HTML or text. I am guessing that's why
    it's different for some people.

    What can I do about this, so that all users will see their email similar to
    this post, not all bunched up into one paragraph, and no HTML tags showing?


  • Bob Lehmann

    #2
    Re: replacing breaks

    You guess correctly.

    Either don't send HTML mail, or when the people on your list sign up, ask
    whether they prefer HTML or text.

    Bob Lehmann

    "middletree " <middletree@hto mail.com> wrote in message
    news:#fMqECXdEH A.2812@tk2msftn gp13.phx.gbl...[color=blue]
    > I have an email form page, and the body of the message is in a textarea.[/color]
    In[color=blue]
    > testing, I noticed that the paragraph breaks weren't showing up in my
    > web-based email that I sent to myself. So I put in a replace function to
    > replace vbcrlf with < br >. (I put those spaces in there for the purpose[/color]
    of[color=blue]
    > this post only).
    >
    > Now, some email recipients are seeing the actual BR tag, depending on if
    > they have chosen to view emails as HTML or text. I am guessing that's why
    > it's different for some people.
    >
    > What can I do about this, so that all users will see their email similar[/color]
    to[color=blue]
    > this post, not all bunched up into one paragraph, and no HTML tags[/color]
    showing?[color=blue]
    >
    >[/color]


    Comment

    • Aaron [SQL Server MVP]

      #3
      Re: replacing breaks

      Some components support sending an HTML and plain text portion, so that the
      format the user uses will dictate which portion is viewed.


      Or, as Bob suggests, send the format the user prefers. If you have to pick
      only one format, go with plain text. HTML bloats the size of the e-mail,
      and will be turned off or unsupported in a good percentage anyway.

      --
      Please contact this domain's administrator as their DNS Made Easy services have expired.

      (Reverse address to reply.)




      "middletree " <middletree@hto mail.com> wrote in message
      news:#fMqECXdEH A.2812@tk2msftn gp13.phx.gbl...[color=blue]
      > I have an email form page, and the body of the message is in a textarea.[/color]
      In[color=blue]
      > testing, I noticed that the paragraph breaks weren't showing up in my
      > web-based email that I sent to myself. So I put in a replace function to
      > replace vbcrlf with < br >. (I put those spaces in there for the purpose[/color]
      of[color=blue]
      > this post only).
      >
      > Now, some email recipients are seeing the actual BR tag, depending on if
      > they have chosen to view emails as HTML or text. I am guessing that's why
      > it's different for some people.
      >
      > What can I do about this, so that all users will see their email similar[/color]
      to[color=blue]
      > this post, not all bunched up into one paragraph, and no HTML tags[/color]
      showing?[color=blue]
      >
      >[/color]


      Comment

      • middletree

        #4
        Re: replacing breaks

        Thanks. Unfortunately, for this site, I have no control over which component
        they are using for mail. I am used to CDO, but they are using something
        else. I need to find out from them how to change it to plain text.



        "Aaron [SQL Server MVP]" <ten.xoc@dnartr eb.noraa> wrote in message
        news:%23DM3hVXd EHA.1656@TK2MSF TNGP09.phx.gbl. ..[color=blue]
        > Some components support sending an HTML and plain text portion, so that[/color]
        the[color=blue]
        > format the user uses will dictate which portion is viewed.
        > http://www.aspfaq.com/2474
        >
        > Or, as Bob suggests, send the format the user prefers. If you have to[/color]
        pick[color=blue]
        > only one format, go with plain text. HTML bloats the size of the e-mail,
        > and will be turned off or unsupported in a good percentage anyway.
        >
        > --
        > http://www.aspfaq.com/
        > (Reverse address to reply.)
        >
        >
        >
        >
        > "middletree " <middletree@hto mail.com> wrote in message
        > news:#fMqECXdEH A.2812@tk2msftn gp13.phx.gbl...[color=green]
        > > I have an email form page, and the body of the message is in a textarea.[/color]
        > In[color=green]
        > > testing, I noticed that the paragraph breaks weren't showing up in my
        > > web-based email that I sent to myself. So I put in a replace function to
        > > replace vbcrlf with < br >. (I put those spaces in there for the purpose[/color]
        > of[color=green]
        > > this post only).
        > >
        > > Now, some email recipients are seeing the actual BR tag, depending on if
        > > they have chosen to view emails as HTML or text. I am guessing that's[/color][/color]
        why[color=blue][color=green]
        > > it's different for some people.
        > >
        > > What can I do about this, so that all users will see their email similar[/color]
        > to[color=green]
        > > this post, not all bunched up into one paragraph, and no HTML tags[/color]
        > showing?[color=green]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Aaron [SQL Server MVP]

          #5
          Re: replacing breaks

          > I am used to CDO, but they are using something else.

          Could you be more specific?

          --
          Please contact this domain's administrator as their DNS Made Easy services have expired.

          (Reverse address to reply.)


          Comment

          • middletree

            #6
            Re: replacing breaks

            Since I posted this, I found that the people hosting this site (of which I
            am only doing a part) are using something called MailEnable. I tried to
            build a mail form using my standard code I always use, which created a CDO
            object. But it didn't work, and their support folks told that I'd have to
            use the following code to send mail from a form:

            -----------------------------------------------------------
            Set oMail = server.CreateOb ject("MEMail.Me ssage")
            oMail.MailFrom = strDefFrom
            oMail.MailFromD isplayName = strFullName
            oMail.ContentTy pe = "text/html;"
            oMail.MailTo = strRcpt
            oMail.Subject = strSubject
            oMail.MessageBo dy = strBody
            oMail.SendMessa ge %>
            ---------------------------------------------------------

            So I went to google, and found that it most likely is the MailEnable
            component that is being used for mail forms. I went to mailenable's site,
            and their support docs don't tell me what to if I want to send plain text
            emails. I'm going to change this line:

            oMail.ContentTy pe = "text/html;"

            to

            oMail.ContentTy pe = "text;"

            and see what happens.





            "Aaron [SQL Server MVP]" <ten.xoc@dnartr eb.noraa> wrote in message
            news:ueY9EjXdEH A.4004@TK2MSFTN GP10.phx.gbl...[color=blue][color=green]
            > > I am used to CDO, but they are using something else.[/color]
            >
            > Could you be more specific?
            >
            > --
            > http://www.aspfaq.com/
            > (Reverse address to reply.)
            >
            >[/color]


            Comment

            Working...