Author Topic: Scheduled Emails - how do you know if it's working?  (Read 3601 times)

  • Guest
Scheduled Emails - how do you know if it's working?
« on: May 03, 2004, 10:23:10 am »
I have some emails in the scheduler, one of which was supposed to go out today (cron task was set for 1:15 this AM).  The client I set it up for says they did not get theirs (they are in the user database).  The task is still in the scheduled list.  How do I know if it sent out or not or if it is working?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Scheduled Emails - how do you know if it's working?
« Reply #1 on: May 03, 2004, 12:01:51 pm »
When the message is processed by dailymail and sent it will be removed from the "Scheduled Email" page.

It seems likely that your cron task is not configured correctly / working.  I recommend that you enable "Send report to admin when dailymail runs" so that you can see whether or not it is.  If it is running correctly you should receive a Dailymail Report email.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

jecmail

  • Posts: 4
    • View Profile
    • http://www.tudads.com
Scheduled Emails - how do you know if it's working?
« Reply #2 on: May 03, 2004, 12:34:50 pm »
NOTE:  Based on CPANEL.  This information is not currently endorsed by ListMail.  Use at your own risk...

When a message is run by the cron, it will be REMOVED from the scheduler.  If the cron ran and the message is still there, chances are your cron is not set properly.

Here is how I test mine (cron)....
(NOTE:  I do not test with the Daily Mail feature as suggested by DW)

Create a test List and add an email address you use.
Create a message to be sent with the scheduler

I use cPanel for controlling my crons.
In cPanel, under the Cron Jobs list, the first option is to have a message sent of the output of the cron job.  You want to put an email address to where the message should be sent.

Temporarily adjust your cront to run every minute or every other minute
You should start getting cron job messages and they should look something like this:

Code: [Select]

--14:23:01--  http://domain.com/ListMailPro/dailymail.php?pw=GoMonkeyGo
           => `-'
Resolving domaincom... done.
Connecting to domain.com[123.123.123.123]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

 Done!<br>No scheduled messages<br>Dailymail executed 2004-05-03 02:05pm
    0K                                                          71.29 KB/s

14:23:02 (71.29 KB/s) - `-' saved [73]


Notice the first line with pw?  that is the password that is used to access the SMTP email server.  This is the the same password you use when you set up the SMTP mail sending under "configuration"

For the cron to execute, this is the command line we use (remember, this is for cPanel on our Unix server

Code: [Select]
/usr/bin/wget -O - http://domain.com/ListMailPro/dailymail.php?pw=GoMonkeyGo

Once you get an email from the CRON to your email account, you know the cron is running.  When there is a message in the queue, instead of seeing "No scheduled messages", you will see what was sent.  Be sure to set the cron to run at 12 noon/midnight.  This is the best setting with this application, we have found.
Again, if you are using cPanel and you find that you are NOT getting the message from the CRON, be sure to check the error logs for a hint of what could be happening.


Hope this helps...
Kind Regards,
John
----------------------
one of the tu Dads...

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Scheduled Emails - how do you know if it's working?
« Reply #3 on: May 03, 2004, 01:06:49 pm »
Thanks for your help with this jecmail, if that is your real name  :D

One mistake I noticed in your reply was:

Quote
"Notice the first line with pw? that is the password that is used to access the SMTP email server. This is the the same password you use when you set up the SMTP mail sending under "configuration"

The dailymail password does not necessarily need to match the SMTP password.  The dailymail password in the cron task should simply match the dailymail password within ListMail.

I noticed on Kim's host they use the path /usr/local/bin/wget as opposed to the default /usr/bin/wget.  I thought this was the problem with their cron task, but now the host states they entered the correct path, so we need to investigate further.
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting