Joobi

Joomla components

For Bug Report or Feature Request please use the ticket system accessible on the tab Support.
This forum is not monitored by Joobi Team although we might take part in discussion.
The forum is mainly a place for members to share ideas and interact together.

You are not logged in.

#1 30 Nov 2008 05:19:43

hptschupp
Junior Member

Problem with sending E-mails

We sent our weekly newsletter for over 6 months. No problem.

Today I wanted to send the Newsletter and the progress report of the sent e-mails came very strange:

4: MySQL server has gone away SQL=REPLACE INTO `jos_acajoom_stats_details` ( `mailing_id`, `subscriber_id`, `sentdate`, `html` ) VALUES (59, 428, \'2008-11-30 03:22:26\', 1)database Object ( [_sql] => REPLACE INTO `jos_acajoom_stats_details` ( `mailing_id`, `subscriber_id`, `sentdate`, `html` ) VALUES (59, 428, '2008-11-30 03:22:26', 1) [_errorNum] => 2006 [_errorMsg] => MySQL server has gone away SQL=REPLACE INTO `jos_acajoom_stats_details` ( `mailing_id`, `subscriber_id`, `sentdate`, `html` ) VALUES (59, 428, '2008-11-30 03:22:26', 1) [_table_prefix] => jos_ [_resource] => Resource id #13 [_cursor] => [_debug] => 0 [_limit] => 0 [_offset] => 0 [_ticker] => 0 [_log] => Array ( ) [_nullDate] => 0000-00-00 00:00:00 [_nameQuote] => ` ) This e-mail address is being protected from spambots. You need JavaScript enabled to view it -> E-Mail erfolgreich versendet

It seems that there could be a problem with the data base.
Any idea?

#2 30 Nov 2008 14:25:32

bbbaldie
Junior Member

Re: Problem with sending E-mails

On Linux, check to make sure the mysql daemon didn't die. If you have shell access, from a command line:

ps -ef|grep mysql

Should return at least two instances of mysql. If not, the service needs to be restarted. Google start mysql linux for detailed instructions.

Or on Windows, restart the mysql service. Google for instructions if you have desktop access to your server, otherwise let your hosting service know.

I manage a corporate intranet with tons of php/mysql apps, and that message invariably means that mysql has crashed.

#3 01 Dec 2008 15:00:34

mihha
Moderator

Re: Problem with sending E-mails

Hi,

read 

Sorry. You have to be registered to access this content.


Please check our 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Igor

http://www.usersigs.com/site/./data/media/12/CROATIA.jpg

#4 02 Dec 2008 01:55:06

hptschupp
Junior Member

Re: Problem with sending E-mails

Hi miha. Your article helped a little bit. I had to reduce the e-mails sent per batch to 10 instead of 50. The e-mails then were sent out fine but stopped at 512 where they shoud have gone to 651. Also SENT report was sent and the newsletter symbol still shows "unpublished".

Why did it not go past 412? Wondering if it has to do with the webhost settings. Maybe they changed something.

At least by the way it works, I doubt that it has to do with the MYSQL.

Let me know what you think.

#5 02 Dec 2008 01:56:36

hptschupp
Junior Member

Re: Problem with sending E-mails

Here my settings: [img size=422]http://www.acajoom.com/images/fbfiles/images/acajoom.jpg[/img]

#6 02 Dec 2008 10:19:30

mihha
Moderator

Re: Problem with sending E-mails

Hi,

I still think that this is your database server mistake. You could also try to use cron job task to send out your mailings.


Please check our 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Igor

http://www.usersigs.com/site/./data/media/12/CROATIA.jpg

#7 03 Dec 2008 04:30:07

hptschupp
Junior Member

Re: Problem with sending E-mails

Hi mihha,

thanks for the reply.

I sent a ticket to my webhost about possible e-mail restrictions.

#8 03 Dec 2008 04:51:02

hptschupp
Junior Member

Re: Problem with sending E-mails

I installed the new version of acajoom 3.0.9

I also posted a ticket to my webhost and got the answer that
no more than 400 e-mails can be sent per hour. This explains the cap around after the 412.

I hate to make smaller e-mail lists since they automatically grow and will reach the 400 number anyway.

So can I set up a CRON JOB that would do 400 E-mails and then wait an hour before it sends the next batch?

Can you send me the technical link "On how to create a CRON JOB" out of the knowledge base?

Best regards
Hanspeter Tschupp

#9 03 Dec 2008 09:55:47

mihha
Moderator

Re: Problem with sending E-mails

Hi,

read 

Sorry. You have to be registered to access this content.

to see how to create cron job task

Also, configure number of emails to the amount of 300 or 350 (to leave some space to the emails that are sent during Joomla users registrations and such stuff). Those emails also goes into the account of hourly limit


Please check our 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Igor

http://www.usersigs.com/site/./data/media/12/CROATIA.jpg

#10 04 Dec 2008 02:18:02

hptschupp
Junior Member

Re: Problem with sending E-mails

I tried to setup the CRON JOB on my Server (Siteground).

I setup an E-mail report when the CRON is executed.

This comes back:

/bin/sh: /root/index2.php?option=com_acajoom: Permission denied

Do I have to change some permissions or is something with my Acajoom config. which has to be changed so the CRON is executed correctly?

#11 04 Dec 2008 23:23:48

mihha
Moderator

Re: Problem with sending E-mails

Hm.

Yes and no.

The thing is that cron job should run this line:

Code:

http://www.yoursite.com/index.php?option=com_acajoom&act=cron

and not

Code:

/bin/sh: /root/index2.php?option=com_acajoom

.

This code should be executed by php or wget or any other utility that can execute URL

So. int he end you should have something like this in cron job:

Code:

wget -q -nd --delete-after 'http://www.yourwebsite.com/index2.php?option=com_acajoom&act=cron'

or

Code:

php -f 'http://www.yourwebsite.com/index2.php?option=com_acajoom&act=cron'

Please check our 

Sorry. You have to be registered to access this content.

and existing replies before posting on our forum!

Best Regards,
Igor

http://www.usersigs.com/site/./data/media/12/CROATIA.jpg

#12 05 Dec 2008 06:45:50

hptschupp
Junior Member

Re: Problem with sending E-mails

Thanks for the suggestions. None of them works.

Let me first understand the basics:

1. What exactly should this CRON job do? Apparently there is a file index2.php in the joomla root directory of my server. It has the permissions 644. So it cannot be executed.

So does the CRON has to trigger this php file?

2. ?option=com_acajoom -> what does this do? Apparently it addresses the component acajoom?

What does it do then? Does it trigger the acajoom queue of unpublished newsletters and send them in batches to the e-mail recipients of corresponding list?

Then I went into a video-tutorial of Sitegrund on how to setup a CRON. There are two options (tabs):

a) Standard
b) Advanced (Unix Style)

They suggest only to use the Standard variant unless one has
knowledge on how to handle standard Linux RedHat programming.

So the STANDARD tab has an entry field with the "Command to run"-field.

They make an example on how to run a cgi script in the cgi-bin folder. They enter into the "Command to run" field:

home/panfloet/public_html/cgi-bi/clients.cgi

So let's get some clarity into the picture and then try it again.

There must be a way to get this CRON working.

#13 06 Dec 2008 07:14:27

hptschupp
Junior Member

Re: Problem with sending E-mails

I finally got a solution. I had to use the external Joobi CRON. It seems to work.

One question: Why do you recommend with SITEGROUND not to use the Joobi CRON in your tutorial?

Forum Tools