Skip to main content
Known Participant
May 11, 2007
Question

Schedule and Mail

  • May 11, 2007
  • 1 reply
  • 254 views
I want to use CFScheduler tag in MX 7 on Windows 2000 to send out about 100 emails once a week at a specific time. The disctinct email addresses are taken from a query from an Access 2003 database.

Two questions:
1- What if one or some of the 100 email addresses are not valid.
I do an data check for email validations so all the database emails have correct email syntax. But maybe there could be addresses that are not valid and the CFMail will not be able to send. Will the "dead" emails go to the Server deposit area or do anything to the other Email sends??

2- I want to make sure the CFScheduler sends at the exact time specified. Is this the correct way to do it and is the cfschedule tag 100% accurate where I can depend on it to run once a week and never run more than once a week?

<cfif DayofWeekAsString(DayOfWeek(Now())) EQ 'Friday' and Timeformat(Now(), 'hh:mm tt') EQ '12:25 PM'>
<cfschedule action = "update"
task = "SendEmails"
operation = "HTTPRequest"
url = " http://myServer/mydirectory/sendEmails.cfm"
startDate = "5/11/07"
startTime = "12:25 PM"
interval = "weekly"
path = "c:\inetpub\wwwroot\mydirectory"
requestTimeOut = "600">
</cfif>



SendEmails.cfm with Date and Time condition:

<cfif DayofWeekAsString(DayOfWeek(Now())) EQ 'Friday' and Timeformat(Now(), 'hh:mm tt') EQ '12:25 PM'>
...etc...
....etc...
</cfif>
    This topic has been closed for replies.

    1 reply

    Inspiring
    May 11, 2007
    Your mail server will probably send a "Undeliverable Mail" memo to the address in the from block. That's what happens with us.
    Inspiring
    July 22, 2007
    I have a similar problem and I am trying to get bad email addresses returned to the sender with Undeliverable message, but it is not happening for me. The mail just sits in the mail server spool and does nothing and I don't get a notification that email was undeliverable.

    How is your mail server set up? Do I need to do something to my mail server to return emails back to the sender?