CDONTS Mail.CC question

Ask a Question related to ASP, Design and Development.

  1. #1

    Default CDONTS Mail.CC question

    Hello

    The code itself is working, this is more of a cosmetic thing for me...
    lets say objRS("memail") = [email]tom.petersen@aol.com[/email]

    strEmail = objRS("memail") & ";bill.clinton@aol.com"
    Mail.CC= strEmail

    When the person (Mail.To) get's the message, the header only shows the objRS
    value, followed by a semicolon, the bill.clinton address doesn't show up,
    although he does get the email.

    So, if the 'to' was for Sally Brown, when she get's the email, she only
    see's one name on the CC line, in this case tom.petersen, she doesn't know
    it went to bill.clinton as well, unless of course she does a reply to all,
    then his name will show in the CC part.

    Again, the code works, but I am trying ot get it to display right and was
    wondering if it's the code, as it usually is in my case!
    TIA!


    Tom Petersen Guest

  2. Similar Questions and Discussions

    1. Need help with CDONTS or other object to receive mail in a specific way
      Hello, Is it possible to write a script using CONDTS object to read all emails from the SMTP IIS "Drop" folder without changing the username and...
    2. Sending HTML formatted mail using CDONTS
      Does anyone have some sample code for sending an HTML formatted message using CDONTS? Thanks RE: Sending HTML formatted mail using CDONTS ...
    3. how to send chinese mail via CDONTS
      Hello Who can teach me how to send chinese(big5) mail via cdonts, I search some information in internet that said using...
    4. How to set mail server for CDONTS?
      You'll have to use CDO instead -- ---------------------------------------------------------- Curt Christianson (Software_AT_Darkfalz.Com)...
    5. Problems with CDONTS e-mail for non-Latin characters
      Hello all I have a very big problem with my ASP pages sending e- mail to my users. I want them to have Greek characters in the message, but...
  3. #2

    Default Re: CDONTS Mail.CC question

    The CC line is there, and is only showing one name plus a semi colon, but it
    should be showing two names.


    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:eeGwf$TgDHA.2268@tk2msftngp13.phx.gbl...
    > The user should see the CC line unless he has chosen to not view that
    field.
    > Are you saying that the person sees this?
    >
    > From: [email]you@yourdomain.com[/email]
    > To: [email]tom.peterson@aol.com[/email]
    > Subject: whatever
    >
    > And there is no CC line? Or is the CC line blank?
    >
    > Ray at work
    >
    > "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    > news:uYa6D5TgDHA.616@TK2MSFTNGP11.phx.gbl...
    > > Hello
    > >
    > > The code itself is working, this is more of a cosmetic thing for me...
    > > lets say objRS("memail") = [email]tom.petersen@aol.com[/email]
    > >
    > > strEmail = objRS("memail") & ";bill.clinton@aol.com"
    > > Mail.CC= strEmail
    > >
    > > When the person (Mail.To) get's the message, the header only shows the
    > objRS
    > > value, followed by a semicolon, the bill.clinton address doesn't show
    up,
    > > although he does get the email.
    > >
    > > So, if the 'to' was for Sally Brown, when she get's the email, she only
    > > see's one name on the CC line, in this case tom.petersen, she doesn't
    know
    > > it went to bill.clinton as well, unless of course she does a reply to
    all,
    > > then his name will show in the CC part.
    > >
    > > Again, the code works, but I am trying ot get it to display right and
    was
    > > wondering if it's the code, as it usually is in my case!
    > > TIA!
    > >
    > >
    >
    >

    Tom Petersen Guest

  4. #3

    Default Re: CDONTS Mail.CC question

    The user should see the CC line unless he has chosen to not view that field.
    Are you saying that the person sees this?

    From: [email]you@yourdomain.com[/email]
    To: [email]tom.peterson@aol.com[/email]
    Subject: whatever

    And there is no CC line? Or is the CC line blank?

    Ray at work

    "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    news:uYa6D5TgDHA.616@TK2MSFTNGP11.phx.gbl...
    > Hello
    >
    > The code itself is working, this is more of a cosmetic thing for me...
    > lets say objRS("memail") = [email]tom.petersen@aol.com[/email]
    >
    > strEmail = objRS("memail") & ";bill.clinton@aol.com"
    > Mail.CC= strEmail
    >
    > When the person (Mail.To) get's the message, the header only shows the
    objRS
    > value, followed by a semicolon, the bill.clinton address doesn't show up,
    > although he does get the email.
    >
    > So, if the 'to' was for Sally Brown, when she get's the email, she only
    > see's one name on the CC line, in this case tom.petersen, she doesn't know
    > it went to bill.clinton as well, unless of course she does a reply to all,
    > then his name will show in the CC part.
    >
    > Again, the code works, but I am trying ot get it to display right and was
    > wondering if it's the code, as it usually is in my case!
    > TIA!
    >
    >

    Ray at Guest

  5. #4

    Default Re: CDONTS Mail.CC question

    That's peculiar. What does this result in:


    sCC = objRS("email") & ";bill.clinton@aol.com"
    Response.Write sCC
    Response.End

    Do you see two addresses? If not, try:

    sCC = objRS.Fields.Item("email").Value & ";bill.clinton@aol.com"

    Ray at work

    "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    news:ex4toCUgDHA.2344@TK2MSFTNGP10.phx.gbl...
    > The CC line is there, and is only showing one name plus a semi colon, but
    it
    > should be showing two names.
    >
    >
    > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    > news:eeGwf$TgDHA.2268@tk2msftngp13.phx.gbl...
    > > The user should see the CC line unless he has chosen to not view that
    > field.
    > > Are you saying that the person sees this?
    > >
    > > From: [email]you@yourdomain.com[/email]
    > > To: [email]tom.peterson@aol.com[/email]
    > > Subject: whatever
    > >
    > > And there is no CC line? Or is the CC line blank?
    > >
    > > Ray at work

    Ray at Guest

  6. #5

    Default Re: CDONTS Mail.CC question

    The Response.Write does show correctly, i.e.,
    [email]tom.petersen@aol.com;bill.clinton@aol.com[/email]
    So when I get the mail and do a reply to all, including coming to my self,
    and once I get it in my inbox, both names do show up.

    So, email from Outlook client via Exchange server works fine
    but email from Form via CDONTS and SMTP doesn't display properly.
    Still not quite sure how it could work, but not display properly. As you
    say, peculiar

    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:eKlVJFUgDHA.3968@tk2msftngp13.phx.gbl...
    > That's peculiar. What does this result in:
    >
    >
    > sCC = objRS("email") & ";bill.clinton@aol.com"
    > Response.Write sCC
    > Response.End
    >
    > Do you see two addresses? If not, try:
    >
    > sCC = objRS.Fields.Item("email").Value & ";bill.clinton@aol.com"
    >
    > Ray at work
    >
    > "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    > news:ex4toCUgDHA.2344@TK2MSFTNGP10.phx.gbl...
    > > The CC line is there, and is only showing one name plus a semi colon,
    but
    > it
    > > should be showing two names.
    > >
    > >
    > > "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    > > news:eeGwf$TgDHA.2268@tk2msftngp13.phx.gbl...
    > > > The user should see the CC line unless he has chosen to not view that
    > > field.
    > > > Are you saying that the person sees this?
    > > >
    > > > From: [email]you@yourdomain.com[/email]
    > > > To: [email]tom.peterson@aol.com[/email]
    > > > Subject: whatever
    > > >
    > > > And there is no CC line? Or is the CC line blank?
    > > >
    > > > Ray at work
    >
    >

    Tom Petersen Guest

  7. #6

    Default Re: CDONTS Mail.CC question

    The only other thing that I can suggest is putting a space after the ;, but
    I really don't think that'd make a difference. I just executed this code,
    and I got an e-mail with a To line with both addresses.


    <%

    <%
    Set oCDO = Server.CreateObject("CDO.Message")
    oCDO.From = "ray@domaina.com"
    oCDO.To = "ray@domainb.com; [email]rcostanzo@domainc.com[/email]"
    oCDO.Subject = "TEst"
    oCDO.TextBody = "test"
    oCDO.Send
    Set oCDO = Nothing
    %>

    (but with valid domains)

    Ray at work


    "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    news:OD1mVRUgDHA.2408@TK2MSFTNGP09.phx.gbl...
    > The Response.Write does show correctly, i.e.,
    > [email]tom.petersen@aol.com;bill.clinton@aol.com[/email]
    > So when I get the mail and do a reply to all, including coming to my self,
    > and once I get it in my inbox, both names do show up.
    >
    > So, email from Outlook client via Exchange server works fine
    > but email from Form via CDONTS and SMTP doesn't display properly.
    > Still not quite sure how it could work, but not display properly. As you
    > say, peculiar
    >

    Ray at Guest

  8. #7

    Default Re: CDONTS Mail.CC question

    <reaching>Did you try comma instead of semi-colon?</reaching>




    "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    news:uYa6D5TgDHA.616@TK2MSFTNGP11.phx.gbl...
    > Hello
    >
    > The code itself is working, this is more of a cosmetic thing for me...
    > lets say objRS("memail") = [email]tom.petersen@aol.com[/email]
    >
    > strEmail = objRS("memail") & ";bill.clinton@aol.com"
    > Mail.CC= strEmail
    >
    > When the person (Mail.To) get's the message, the header only shows the
    objRS
    > value, followed by a semicolon, the bill.clinton address doesn't show up,
    > although he does get the email.
    >
    > So, if the 'to' was for Sally Brown, when she get's the email, she only
    > see's one name on the CC line, in this case tom.petersen, she doesn't know
    > it went to bill.clinton as well, unless of course she does a reply to all,
    > then his name will show in the CC part.
    >
    > Again, the code works, but I am trying ot get it to display right and was
    > wondering if it's the code, as it usually is in my case!
    > TIA!
    >
    >

    Aaron Bertrand - MVP Guest

  9. #8

    Default Re: CDONTS Mail.CC question

    Ray, I'm an idiot, my preview pane wasn't wide enough, both names are there,
    sorry!

    "Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
    news:%236HjfWUgDHA.2292@TK2MSFTNGP10.phx.gbl...
    > The only other thing that I can suggest is putting a space after the ;,
    but
    > I really don't think that'd make a difference. I just executed this code,
    > and I got an e-mail with a To line with both addresses.
    >
    >
    > <%
    >
    > <%
    > Set oCDO = Server.CreateObject("CDO.Message")
    > oCDO.From = "ray@domaina.com"
    > oCDO.To = "ray@domainb.com; [email]rcostanzo@domainc.com[/email]"
    > oCDO.Subject = "TEst"
    > oCDO.TextBody = "test"
    > oCDO.Send
    > Set oCDO = Nothing
    > %>
    >
    > (but with valid domains)
    >
    > Ray at work
    >
    >
    > "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    > news:OD1mVRUgDHA.2408@TK2MSFTNGP09.phx.gbl...
    > > The Response.Write does show correctly, i.e.,
    > > [email]tom.petersen@aol.com;bill.clinton@aol.com[/email]
    > > So when I get the mail and do a reply to all, including coming to my
    self,
    > > and once I get it in my inbox, both names do show up.
    > >
    > > So, email from Outlook client via Exchange server works fine
    > > but email from Form via CDONTS and SMTP doesn't display properly.
    > > Still not quite sure how it could work, but not display properly. As
    you
    > > say, peculiar
    > >
    >
    >

    Tom Petersen Guest

  10. #9

    Default Re: CDONTS Mail.CC question

    That's funny. [:

    "Tom Petersen" <petert@sdsd.sdbor.edu> wrote in message
    news:uR9lyhUgDHA.2748@TK2MSFTNGP11.phx.gbl...
    > Ray, I'm an idiot, my preview pane wasn't wide enough, both names are
    there,
    > sorry!

    Ray at Guest

Posting Permissions

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