I log it to a db. All you need is a to,from,subject,body,attachments columns
and a column to hold when you want it to send. The just have a schedule
checking the db every minute or so 

-----Original Message-----
From: nomadic fish [mailto:nomadicf...@gmail.com] 
Sent: Tuesday, 18 May 2010 12:51 PM
To: cfaussie@googlegroups.com
Subject: [cfaussie] scheduled email

While everyone is thinking about email
(and while i have a minute to relax after fixing an SMTP server problem that
was causing us headaches for a week) I've been asked to add a 'delayed send'
option to a certain type of email.  The site sends a few dozen emails a day
to its users, but one or two of them have to be delayed until a future
trigger.  The send is triggered by user action, so it can't be a scheduled
task - the most obvious solution is for the page to construct the email,
save its details to a db table, and set up a scheduled task which checks for
emails which are due to be sent and creates them... but that seems a bit
cumbersome.
I'd love to be able to use cfmail to create an email, but save it to a file
instead of the spool folder, then use cffile to shift it when i'm ready to
send it.  but i think that's optimistic...
Does anyone have any suggestions for building a simple email scheduler?

nsdfwer

--
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaus...@googlegroups.com.
To unsubscribe from this group, send email to 
cfaussie+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en.

Reply via email to