0
cfmail to BCC only
New Here
,
/t5/coldfusion-discussions/cfmail-to-bcc-only/td-p/440136
Jan 20, 2008
Jan 20, 2008
Copy link to clipboard
Copied
Hi all, Any assistance would be greatly appreciated.
I am trying to create a form which would upon submission send its contents to a list of recipients (queried from a database). The problem is as the list grows, all the copies of the emails are starting to become annoying.
I would like to ONLY send to bcc. Is this possible? It looks like I HAVE TO place a TO: field when using the cfmail tag. Is there anyway around this?
the code I am using:
<cfloop query="qdetails">
<cfmail to="inquiry@somedomain.com" bcc="#qdetails.Email#" subject="study query from somedomain.com" replyto="inquiry@somedomain.com" from="inquiry@somedomain.com" type="html" >
BODY OF EMAIL
</cfmail>
</cfloop>
thank you very much.
Pete
I am trying to create a form which would upon submission send its contents to a list of recipients (queried from a database). The problem is as the list grows, all the copies of the emails are starting to become annoying.
I would like to ONLY send to bcc. Is this possible? It looks like I HAVE TO place a TO: field when using the cfmail tag. Is there anyway around this?
the code I am using:
<cfloop query="qdetails">
<cfmail to="inquiry@somedomain.com" bcc="#qdetails.Email#" subject="study query from somedomain.com" replyto="inquiry@somedomain.com" from="inquiry@somedomain.com" type="html" >
BODY OF EMAIL
</cfmail>
</cfloop>
thank you very much.
Pete
TOPICS
Getting started
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/cfmail-to-bcc-only/m-p/440137#M39746
Jan 20, 2008
Jan 20, 2008
Copy link to clipboard
Copied
why don't you just <cfmail to="#qdetails.Email#" ...>?
why do you need
to bcc to the recipients?
---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
to bcc to the recipients?
---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
pmayadun
AUTHOR
New Here
,
/t5/coldfusion-discussions/cfmail-to-bcc-only/m-p/440138#M39747
Jan 21, 2008
Jan 21, 2008
Copy link to clipboard
Copied
Hi Azadi,
Thanks for the response. But I actually dont want the recipients to be able to see the other recipients, hence the use of the bcc option.
thanks though
Pete
Thanks for the response. But I actually dont want the recipients to be able to see the other recipients, hence the use of the bcc option.
thanks though
Pete
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/cfmail-to-bcc-only/m-p/440142#M39751
Jan 21, 2008
Jan 21, 2008
Copy link to clipboard
Copied
They won't see who else it goes to.
--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com
"pmayadun" <webforumsuser@macromedia.com> wrote in message
news:fn27f8$9ij$1@forums.macromedia.com...
> Hi Azadi,
> Thanks for the response. But I actually dont want the recipients to be
> able to see the other recipients, hence the use of the bcc option.
> thanks though
>
> Pete
--
Ken Ford
Adobe Community Expert - Dreamweaver
Fordwebs, LLC
http://www.fordwebs.com
"pmayadun" <webforumsuser@macromedia.com> wrote in message
news:fn27f8$9ij$1@forums.macromedia.com...
> Hi Azadi,
> Thanks for the response. But I actually dont want the recipients to be
> able to see the other recipients, hence the use of the bcc option.
> thanks though
>
> Pete
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/cfmail-to-bcc-only/m-p/440139#M39748
Jan 21, 2008
Jan 21, 2008
Copy link to clipboard
Copied
What Azadi was probably trying to say was, "instead of
sending one mail to a number of people, why not send a number of
mails to one person each?".
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
pmayadun
AUTHOR
New Here
,
/t5/coldfusion-discussions/cfmail-to-bcc-only/m-p/440140#M39749
Jan 21, 2008
Jan 21, 2008
Copy link to clipboard
Copied
Hi dan,
Thanks for that. I am really sorry i dont know what you mean. What i am trying to do is as follows:
I have a form that a user would complete, and then depending on what they input, the form will query a database and pull out a number of emails and send the form's contents to all these people. When the emails are received, i dont really want each and everyone to see who else has received it.
At times it is possible that the number of email addresses that come from the query (the recipients) will be around a couple of hundred. So i dont really want a copy of each of these email to come to me also. If it was just one copy that would be fine.
I tried the <cfmail to="#qdetails.Email#" ...> option and noticed that the user can see the other recipients. Did you mean i get rid of the cfloop tag? I added the cfloop tag, because without that it was only sending ONE email out to just one person at a time...no matter how many email addresses came out of the query.
I hope I am not confusing the issue further....
thanks again...
Pete
Thanks for that. I am really sorry i dont know what you mean. What i am trying to do is as follows:
I have a form that a user would complete, and then depending on what they input, the form will query a database and pull out a number of emails and send the form's contents to all these people. When the emails are received, i dont really want each and everyone to see who else has received it.
At times it is possible that the number of email addresses that come from the query (the recipients) will be around a couple of hundred. So i dont really want a copy of each of these email to come to me also. If it was just one copy that would be fine.
I tried the <cfmail to="#qdetails.Email#" ...> option and noticed that the user can see the other recipients. Did you mean i get rid of the cfloop tag? I added the cfloop tag, because without that it was only sending ONE email out to just one person at a time...no matter how many email addresses came out of the query.
I hope I am not confusing the issue further....
thanks again...
Pete
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/coldfusion-discussions/cfmail-to-bcc-only/m-p/440141#M39750
Jan 21, 2008
Jan 21, 2008
Copy link to clipboard
Copied
Forget programming for a moment and picture yourself sending
the same email to 3 people and you don't want any of these people
to know about the other 2. You can send the same email 3 times, to
each one in turn, or you can send it to yourself and bcc the other
3.
For a person using an email client, the 2nd method is a lot more efficient than the 1st.
For a computer program, the 1st method is a better option. It's a computer writing these emails, not you.
For a person using an email client, the 2nd method is a lot more efficient than the 1st.
For a computer program, the 1st method is a better option. It's a computer writing these emails, not you.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
pmayadun
AUTHOR
New Here
,
LATEST
/t5/coldfusion-discussions/cfmail-to-bcc-only/m-p/440143#M39752
Jan 25, 2008
Jan 25, 2008
Copy link to clipboard
Copied
Thanks again folks. Its all sorted. Thanks Azadi (and Ken)
for pointing it out, and Dan, for taking the time explaining it to
me.
Have a good day...
Pete
Have a good day...
Pete
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

