|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Phpmailer v5.0.2 can't do cron jobsHi,there,
I can send email through www.mydomain.com/PHPMailer_v5.0.2/test/test_smtp_basic.php,but if I put it into cron,it wouldn't send any emails. My cron file is as follows: 00-59 * * * * /usr/bin/php -q /usr/local/htdocs/public/web/PHPMailer_v5.0.2/test/test_smtp_basic.php and I tried wget as follows: 01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 * * * * /usr/bin/wget http://www.mydomain.com/PHPMailer_v5.0.2/test/test_smtp_basic.php It didn't work either. I am using Linux fedora 10,and PHPMailer_v5.0.2,SMTP/Postfix in another machine. Any hint would be highly appreciated! Joe ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Phpmailer-general mailing list Phpmailer-general@... https://lists.sourceforge.net/lists/listinfo/phpmailer-general |
|
|
Re: Phpmailer v5.0.2 can't do cron jobscan you run the command as the user you enter the cronjob under?
On Sun, Oct 4, 2009 at 8:09 PM, Joe Zhou <ossky0516@...> wrote: > Hi,there, > I can send email through > www.mydomain.com/PHPMailer_v5.0.2/test/test_smtp_basic.php,but if I put it > into cron,it wouldn't send any emails. > My cron file is as follows: > 00-59 * * * * /usr/bin/php -q > /usr/local/htdocs/public/web/PHPMailer_v5.0.2/test/test_smtp_basic.php > > and I tried wget as follows: > 01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 > * * * * /usr/bin/wget > http://www.mydomain.com/PHPMailer_v5.0.2/test/test_smtp_basic.php > It didn't work either. > > I am using Linux fedora 10,and PHPMailer_v5.0.2,SMTP/Postfix in another > machine. > > Any hint would be highly appreciated! > > Joe > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > Phpmailer-general mailing list > Phpmailer-general@... > https://lists.sourceforge.net/lists/listinfo/phpmailer-general > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Phpmailer-general mailing list Phpmailer-general@... https://lists.sourceforge.net/lists/listinfo/phpmailer-general |
|
|
Re: Phpmailer v5.0.2 can't do cron jobsChris,
Thanks for your quick response. I am the user root.and it is a dedicated web server. Joe On Sun, Oct 4, 2009 at 9:36 PM, Chris Weiss <cweiss@...> wrote: can you run the command as the user you enter the cronjob under? ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Phpmailer-general mailing list Phpmailer-general@... https://lists.sourceforge.net/lists/listinfo/phpmailer-general |
|
|
Re: Phpmailer v5.0.2 can't do cron jobsJoe,
Your subject line is entirely wrong. It should say that "Need help to get CRON working with PHPMailer" First thing to consider is whether your PHP is CGI or API. Since you are using CGI style CRON commands, I am assuming you have PHP as an Apache module (API). Next thing to consider is whether or not PHPMailer is calling other scripts, and it is. That means your CGI style commands won't work properly. So, the proper steps to follow to figure out how to make this work is to do a Google search and see if there are similar issues out there, not to blame the script. One such search led to this article (the very first one displayed): http://www.phpbuilder.com/board/archive/index.php/t-2111920.html That article suggests that this command would work: * * * * * lynx -dump www.mydomain.com/PHPMailer_v5.0.2/test/test_smtp_basic.php > /dev/null ... and that is exactly how we get CRONs to execute ALL PHP scripts on our domains (substitute the * for the exact schedule you need). Andy > Hi,there, > I can send email through > www.mydomain.com/PHPMailer_v5.0.2/test/test_smtp_basic.php,but if I put it > into cron,it wouldn't send any emails. > My cron file is as follows: > 00-59 * * * * /usr/bin/php -q > /usr/local/htdocs/public/web/PHPMailer_v5.0.2/test/test_smtp_basic.php > > and I tried wget as follows: > 01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59 > * * * * /usr/bin/wget http://www. > mydomain.com/PHPMailer_v5.0.2/test/test_smtp_basic.php<http://www.aaabbbccc.com/ppphhhhppppmailerlib/phpmailer/test/1119000888Test.php> > It didn't work either. > > I am using Linux fedora 10,and PHPMailer_v5.0.2,SMTP/Postfix in another > machine. > > Any hint would be highly appreciated! > > Joe > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Phpmailer-general mailing list Phpmailer-general@... https://lists.sourceforge.net/lists/listinfo/phpmailer-general |
|
|
Re: Phpmailer v5.0.2 can't do cron jobsAndy,
Sorry for my wrong subject line... After I yum install lynx and follow your instruction,now PHPMailer can send email now!!! It is really a surprise to me! Thanks again for your great hint! Joe On Sun, Oct 4, 2009 at 10:07 PM, <andy@...> wrote: Joe, ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Phpmailer-general mailing list Phpmailer-general@... https://lists.sourceforge.net/lists/listinfo/phpmailer-general |
| Free embeddable forum powered by Nabble | Forum Help |