Welcome to Dream.In.Code
Getting Help is Easy!

Join 105,777 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,228 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Send emails to all the people in Mysql

 
Reply to this topicStart new topic

Send emails to all the people in Mysql

cumupkid
post 15 Apr, 2008 - 07:06 PM
Post #1


New D.I.C Head

*
Joined: 22 Jan, 2008
Posts: 9

Any suggestions on how to send emails to a group of people in a MySQL Database with Coldfusion.
Also, want to BCC these emails , or something to hide the email address from all the recipients.

AND... I still haven't figured out how to make database output tables have two columns...Anyone?

Thanks in advance

Joe

This post has been edited by cumupkid: 15 Apr, 2008 - 07:35 PM
User is offlineProfile CardPM

Go to the top of the page


dswens
post 15 Apr, 2008 - 07:54 PM
Post #2


New D.I.C Head

*
Joined: 16 Oct, 2007
Posts: 34


My Contributions


QUOTE(cumupkid @ 15 Apr, 2008 - 07:06 PM) *

Any suggestions on how to send emails to a group of people in a MySQL Database with Coldfusion.
Also, want to BCC these emails , or something to hide the email address from all the recipients.

AND... I still haven't figured out how to make database output tables have two columns...Anyone?

Thanks in advance

Joe


Write a query to select all the information (email addresses, names, etc.) from the DB. Then use
CODE
<cfoutput query="YOUR QUERY">
and nest your CFMAIL tag between the CFOUTPUT tags. This will loop through all selected DB records and perform whatever action you specify between the CFOUTPUT tags (such as CFMAIL).

You can use the same technique to create multi-column tables by placing your table structure between the CFOUTPUT tags instead of the mail tag. Be sure to only put the tags you want to repeat between the tags. For example, don't put your TABLE tag in the CFOUTPUT, only your TR or TD tags that you want looped.

Hope that helps
User is offlineProfile CardPM

Go to the top of the page

rickdrew
post 11 May, 2008 - 11:25 AM
Post #3


New D.I.C Head

*
Joined: 10 May, 2008
Posts: 6


My Contributions


Don't forget that you have to make the MySQL database available as a datasource first.

Multiple comumns - search the forums -it's already here.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 8/21/08 04:21PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month