Hello,
I’m moving from mailchimp to phpList --> it’s set up on a linux shared hosting, but I’m considering to use an external smtp as mailgun or sendgrid. Which do you suggest?
I got like 5k email contacts and I’ll send a newsletter once a month and I’ll use a brand new domain, never used before.
Should I make a cron job or a mail queue? how? I’d like to avoid spamming behaviour and problems.
duncanc
September 28, 2017, 1:50pm
#2
Unless the hosting company imposes a very limited sending rate you can send 5,000 emails in a few hours through the local mail server, no need for an external provider like Mailgun.
Should I make a cron job or a mail queue
It sounds like you need to find out what phplist actually does. Try the help documentation - click the “back to phplist.org ” link at the top of each forum page.
Thanks for your reply, @duncanc !
Actually at this moment I don’t know exactly the sending limit - that’s why I’m looking for an external provider.
I read all the manual. I don’t have a ssh access, so I’m using the phplist.com option.
I was wondering how can I set up limits to send emails. Like send 80 emails per hour and when it’s done wait some time…
duncanc
September 29, 2017, 6:01am
#4
@piotramp Look at batch size, batch period, throttle, etc in the config_extended file and copy those settings to the config.php file.
Hey @duncanc !
I’m trying using cron job. First of all I used easycron.com and I can see the output is a json. I found this guide about cpanel: https://forums.phplist.com/viewtopic.php?t=11712 .
And cron daemon in every email sent me the html source with Warning: commandline only works well with the cli version of PHP .
The command is:
/usr/bin/php /home/USER/phplist/admin/index.php -p processqueue
The reply from cPanel cronjob should it be like easycron? Like this?
{"campaign":0,"num_users_for_message":0,"batch_count":0,"batch_total":80,"sendemail returned false total":0,"send blocked by domain throttle":0,"add attachment error":0,"sendemail returned false":0,"sentastest":0,"invalid":0,"failed_sent":0,"sent":0,"num_per_batch":80,"status":"embargo","delaysend":null}
duncanc
October 2, 2017, 10:24am
#6
@duncanc just tried:
/usr/bin/php /home/USER/PHPLIST/admin/index.php -pprocessqueue -c/home/USER/PHPLIST/config/config.php >~/processqueue.log 2>&1
and processqueue.log :
X-Powered-By: PHP/7.1.6
Set-Cookie: PHPSESSID=1bc72bebb18711ae2f2f7f36fe2f73e1; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
X-UA-Compatible: IE=Edge
X-Robots-Tag: noindex
Content-type: text/html; charset=UTF-8
Warning: commandline only works well with the cli version of PHP<!DOCTYPE html>
<html lang="it" dir="ltr" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="License" content="GNU Affero General Public License, http://www.gnu.org/licenses/agpl.html" />
<meta name="Author" content="Michiel Dethmers - http://www.phplist.com" />
<meta name="Copyright" content="Michiel Dethmers, phpList Ltd - http://phplist.com" />
<meta name="Powered-By" content="phplist version 3.3.1" />
<meta property="og:title" content="phpList" />
<meta property="og:url" content="http://phplist.com" />
<link rel="shortcut icon" href="./images/phplist.ico" />
<link rel="icon" href="./images/phplist.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="./images/phplist-touch-icon.png" />
<link rel="apple-touch-icon-precomposed" href="./images/phplist-touch-icon.png" />
<!-- initial styles and JS from basic application -->
<!-- the CSS is already mostly minified -->
<link rel="stylesheet" href="css/app.css" />
<link rel="stylesheet" href="ui/phplist-ui-bootlist/css/style.css?v=1506496946" />
<title>phpList :: phpList :: Pagina di Amministrazione</title></head>
<body class="invisible login">
<div id="dialog"></div><div id="hiddendiv"></div>
duncanc
October 2, 2017, 11:35am
#8
@piotramp Did you try using php-cli
as the command?
@duncanc this is the command:
/usr/bin/php /home/USER/PHPLIST/admin/index.php -pprocessqueue -c/home/USER/PHPLIST/config/config.php >~/processqueue.log 2>&1
do you mean to replace /usr/bin/php
with just php-cli
?
duncanc
October 2, 2017, 12:43pm
#10
@piotramp Yes, just try that.
@duncanc wow!
I got this! is it right?
phpList version 3.3.1 (c) 2000-2017 phpList Ltd, http://www.phplist.com
phpList - Recently sent : 0
phpList - Iniziata [0,0197900000] (109)
phpList - Sending in batches of 80 emails [0,0004560000] (112)
phpList - Script - passo: 6 [0,0008400000] (116)
phpList - Finito, Niente da fare [0,0002260000] (117)
phpList - Finito, Tutto OK [0,0009680000] (123)