hi
I ve got some question concerning the cronjob from the newsletter,
do they send email to every people in the list if "number of people per request =0" ?
is there a report or something to see if people received the newsletter ?
it'seems the email was sent to only one person in my case,
thanks in advanced
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Probléme with newsletter cronjob
-
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
-
- Rank: Developer
- Registered: May 17, 2004
- Last visit: Apr 08, 2010
- Posts: 386
ok i managed to make it worked
first , in the theme module, xanthia cache must not be used for newsletters
Email are send by packets of mails, so you have to run the send task multiple times.
As i didn't want to do it manually , i made this small script which send mail until there is no mail to send
In order to use it , edit
- NOTAVAILABLE : message which says there no more available email for sending newsletter, (look in you constant _NEWSLETTER_NO_USERS)
- HOSTNAME : you hostname without
- ADMINKEY : you admin key , look in the newsletter module interface
Code
#!/bin/bash
NOTAVAILABLE="disponible pour envoyer la newsletter"
HOSTNAME=forum.webnetters.org
ADMINKEY=5c81d723f4
isFinished=0
until [ "$isFinished" == "1" ]; do
url="http://${HOSTNAME}/index.php?module=Newsletter&func=send&scheduled=1&authKey=${ADMINKEY}"
curl --silent ${url} --user-agent "Mozilla/5.0" >report.txt
isFinished=$(grep "${NOTAVAILABLE}" report.txt|wc -l)
if [ "$isFinished" == "0" ]; then
sendLetters=$(sed 's/.*class=\"pn-module-Newsletter\">\([ 0-9]*\)<\/div>.*//' report.txt)
echo "Sending letters ... ${sendLetters} letters send [${isFinished}]"
sleep 60
else
echo "Finish"
fi
rm -f report.txt
done
- Moderated by:
- Support
