Author Topic: how to get dailymail working?  (Read 1954 times)

hlatimer

  • Posts: 6
    • View Profile
how to get dailymail working?
« on: September 09, 2005, 01:23:32 pm »
Hello--

I'm not particularly familiar with ListMail Pro, but my client is. I installed the system on the client's server and everything looked fine. However, we can't get dailymail working at all.

The cron job looks fine. I have other cron jobs running without error.

I have triple checked the dailymail password in the admin area and the cron job--they match.

The wget module is installed on the server.

The path to wget in the cron job is correct.

Any ideas for how I can get this working?

Also, what is the best step-by-step method for testing dailymail?

TIA!

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
how to get dailymail working?
« Reply #1 on: September 12, 2005, 07:36:08 am »
First, make sure the "dailymail report" is enabled.  Then, providing you don't have any users receiving followups, set up your cron task to run once every minute.  If all is well you should receive an email each time dailymail runs.

If you don't receive an email there could be a problem with PHP mail() on the server.  Can you receive welcome and confirmation messages?  They use the same process.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

hlatimer

  • Posts: 6
    • View Profile
how to get dailymail working?
« Reply #2 on: September 27, 2005, 07:46:53 pm »
Thank you for your reply.

The Dailymail report is enabled ("Send admin a report after Dailymail runs" checked on Config tab). Alas, no dailymail report is sent.

The Welcome message goes through just fine. Every time I try testing the
automatic emails again, I get the Welcome message right away. This indicates that PHP mail() is working as it should, correct?

Any other ideas?

TIA!

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
how to get dailymail working?
« Reply #3 on: September 28, 2005, 01:38:52 am »
1. Are you sure you can receive email at the Administrator Email address?
2. What happens when you try to receive list 'notifications' at the Admin Email?  Do you receive them?
3. We may be able to test the command-line response to your cron command.

If you can (usually via SSH shell "crontab -e") add the following line at the top of your crontab:

MAILTO=your@email.com

Remove the 1> /dev/null and 2> /dev/null paramaters from the wget command.  You might also want to output to a file you can view later by changing the wget "-o" paramater to something other than /dev/null, such as "/home/you/www/wget.txt"

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

hlatimer

  • Posts: 6
    • View Profile
how to get dailymail working?
« Reply #4 on: September 28, 2005, 05:37:54 pm »
Hello Dean--

Thanks again for your help with this matter.

1. Yes, I can receive email at the Admin Email address without issue.

2. Don't know yet, just enabled the app to send notifications to the Admin Email.

3. I added an additional cron job and had it run every minute. I received emails from cron that looked like this:

Quote
--16:45:01--  http://www.mysite.com/listmail/dailymail.php?doitdaily
           => `/home/virtual/site10/fst/var/www/html/wget.txt'
Resolving www.mysite.com.com... my IP
Connecting to www.mysite.com.com|my IP|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

0K .........                                                96.27 MB/s

16:45:03 (96.27 MB/s) - `/home/virtual/site10/fst/var/www/html/wget.txt' saved [9287]


I also had the cron job generate a file as you suggested, then grabbed it off the server. The file generated was an HTML page with a notice to log in. I'm not sure what this tells us.

Please advise.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
how to get dailymail working?
« Reply #5 on: September 29, 2005, 12:27:35 am »
Quote
The file generated was an HTML page with a notice to log in.

I think this is the key.  This could be an indicator that the dailymail password is incorrect.  Copy and paste the password from the cron task into ListMail for best results.  You might try browsing to the URL / password used in the cron task to see if you get the same login page or the correct page, which shows the time dailymail was run.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

hlatimer

  • Posts: 6
    • View Profile
how to get dailymail working?
« Reply #6 on: October 05, 2005, 09:30:42 am »
Hello Dean--

Thank you for your response.

The password is correct.

I visited the URL/password in the browser, and dailymail executed.

The login response only happens via the cronjob.

Please advise.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
how to get dailymail working?
« Reply #7 on: October 05, 2005, 10:21:08 pm »
It's difficult to say what's going on here.  Some operating systems (such as FreeBSD, I believe) might require a "backslash" before special characters in the command-line.
ie:

/usr/bin/wget -O /dev/null -T 0 http://yoursite.com/mail/dailymail.php\?pw=YourDailyMailPass 1> /dev/null 2> /dev/null

If you continue to have troubles please submit a tech support request of the type 'Other' at http://listmailpro.com/support

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

hlatimer

  • Posts: 6
    • View Profile
SOLVED
« Reply #8 on: October 06, 2005, 09:30:43 am »
Hello Dean--

Thank you for your help in resolving this. I'm pretty sure I have the issue solved now. The key was in your last post:

Code: [Select]
/usr/bin/wget -O /dev/null -T 0 http://yoursite.com/mail/dailymail.php\?pw=YourDailyMailPass 1> /dev/null 2> /dev/null

Now compare this to something I posted earlier:
Code: [Select]

http://www.mysite.com/listmail/dailymail.php?doitdaily


Spot the difference? I am missing "pw=" in that string! Doh!

Thanks again.