By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,652 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,652 IT Pros & Developers. It's quick & easy.

CDONTS Mail.CC question

P: n/a
Hello

The code itself is working, this is more of a cosmetic thing for me...
lets say objRS("memail") = to**********@aol.com

strEmail = objRS("memail") & ";bi**********@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!
Jul 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
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: yo*@yourdomain.com
To: to**********@aol.com
Subject: whatever

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

Ray at work

"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:uY*************@TK2MSFTNGP11.phx.gbl...
Hello

The code itself is working, this is more of a cosmetic thing for me...
lets say objRS("memail") = to**********@aol.com

strEmail = objRS("memail") & ";bi**********@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!

Jul 19 '05 #2

P: n/a
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:ee**************@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: yo*@yourdomain.com
To: to**********@aol.com
Subject: whatever

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

Ray at work

"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:uY*************@TK2MSFTNGP11.phx.gbl...
Hello

The code itself is working, this is more of a cosmetic thing for me...
lets say objRS("memail") = to**********@aol.com

strEmail = objRS("memail") & ";bi**********@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!


Jul 19 '05 #3

P: n/a
That's peculiar. What does this result in:
sCC = objRS("email") & ";bi**********@aol.com"
Response.Write sCC
Response.End

Do you see two addresses? If not, try:

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

Ray at work

"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:ex**************@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:ee**************@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: yo*@yourdomain.com
To: to**********@aol.com
Subject: whatever

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

Ray at work

Jul 19 '05 #4

P: n/a
The Response.Write does show correctly, i.e.,
to**********@aol.com;bi**********@aol.com
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:eK**************@tk2msftngp13.phx.gbl...
That's peculiar. What does this result in:
sCC = objRS("email") & ";bi**********@aol.com"
Response.Write sCC
Response.End

Do you see two addresses? If not, try:

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

Ray at work

"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:ex**************@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:ee**************@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: yo*@yourdomain.com
To: to**********@aol.com
Subject: whatever

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

Ray at work


Jul 19 '05 #5

P: n/a
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 = "ra*@domaina.com"
oCDO.To = "ra*@domainb.com; rc*******@domainc.com"
oCDO.Subject = "TEst"
oCDO.TextBody = "test"
oCDO.Send
Set oCDO = Nothing
%>

(but with valid domains)

Ray at work
"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:OD**************@TK2MSFTNGP09.phx.gbl...
The Response.Write does show correctly, i.e.,
to**********@aol.com;bi**********@aol.com
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

Jul 19 '05 #6

P: n/a
<reaching>Did you try comma instead of semi-colon?</reaching>


"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:uY*************@TK2MSFTNGP11.phx.gbl...
Hello

The code itself is working, this is more of a cosmetic thing for me...
lets say objRS("memail") = to**********@aol.com

strEmail = objRS("memail") & ";bi**********@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!

Jul 19 '05 #7

P: n/a
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:%2****************@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 = "ra*@domaina.com"
oCDO.To = "ra*@domainb.com; rc*******@domainc.com"
oCDO.Subject = "TEst"
oCDO.TextBody = "test"
oCDO.Send
Set oCDO = Nothing
%>

(but with valid domains)

Ray at work
"Tom Petersen" <pe****@sdsd.sdbor.edu> wrote in message
news:OD**************@TK2MSFTNGP09.phx.gbl...
The Response.Write does show correctly, i.e.,
to**********@aol.com;bi**********@aol.com
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


Jul 19 '05 #8

P: n/a
That's funny. [:

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

Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.