Skip to main content
Participant
September 12, 2006
Question

Sending Out Emails When More Convenient for Server

  • September 12, 2006
  • 2 replies
  • 249 views
Right now I have a scheduled task that runs everyday to send out all emails scheduled for the day. Right now I process and send out all the emails at once. As I'm getting more clients and users, this process is taking more time and this is slowing down the performance my users see if they happen to be working at the same time. Is there anyway to put the emails I want to send out in a temporary holding area and send them out a few at a time or when my server is not busy doing other things.

Any help greatly appreciated.
This topic has been closed for replies.

2 replies

Participant
September 13, 2006
You could also change the frequency of running the scheduled task. We have several applications that are scheduled to run every 61 seconds, and it's no real problem for the web server or CF. Most of the time there's nothing there, and rarely there are two or more things to do. In all other cases, there is only one thing to do (e.g., send an email). This spreads the burden out as much as you can, I think. No one should see the kind of degradation you cite.
Inspiring
September 12, 2006
You will need to change the mail server setting, specifically, smtp spool settings on the server. Additionally, you can increase the number of threads if your smtp server can handle it. You might want to spool to disk instead of memory but that is slower in some instances. It just depends on the application.

http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=00001710.htm