User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ColdFusion section within the Web Development category of DaniWeb, a massive community of 455,965 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,684 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ColdFusion advertiser: Programming Forums
Views: 1040 | Replies: 1
Reply
Join Date: Apr 2007
Posts: 28
Reputation: lafalot is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
lafalot lafalot is offline Offline
Light Poster

Update query after cfmail

  #1  
Nov 20th, 2007
Hi,

I'm selecting email addresses to mail where the field emailsent is null. After I run the cfmail, I update the field to the date the email was sent.

Is there a danger of the update query running before the cfmail is finished? Is there a solution for this?

Many thanks!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2005
Location: Downingtown
Posts: 58
Reputation: hinde is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 3
hinde hinde is offline Offline
Junior Poster in Training

Re: Update query after cfmail

  #2  
Dec 12th, 2007
Well if I recall typical sysadmin settings for coldfusion, cfmail messages will be sent when the coldfusion feels like it (this annoys me to no end). You can override this by adding an extra attribute to your cfmail tag. Here is an example of its use:

<cfmail from="info@test.com" to="someguy@wherever.com" subject="mysubject" spoolenable="false">
#myMessage#
</cfmail>

This tells coldfusion to send the e-mail immediately.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ColdFusion Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ColdFusion Forum

All times are GMT -4. The time now is 9:06 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC