Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfmail to BCC only

New Here ,
Jan 20, 2008 Jan 20, 2008
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
TOPICS
Getting started
1.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 20, 2008 Jan 20, 2008
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2008 Jan 21, 2008
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2008 Jan 21, 2008
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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2008 Jan 21, 2008
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?".
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2008 Jan 21, 2008
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2008 Jan 21, 2008
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2008 Jan 25, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources