xoops forums

Zap_English

Quite a regular
Posted on: 8/30 9:57
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 381
Since: 2016/5/24
#1

Problem with xNewsletter

It's not working

In preferences I had it set to send 10 emails every 10 minutes. There are 50 members subscribed in the database

It sent out the first 10 emails and then seems to have stopped.

I tried to send again and I got "failed-> Could not instantiate mail function." for 90 emails?

I reset the preferences to "0" ( send all at once) and got the same error

Then I reset the preferences to "25" to send 25 emails at a time and again I got "failed-> Could not instantiate mail function." for 25 emails

Newsletter Statistics
There are 1 Accounts in the Database
There are 1 Categories in the Database
There are 50 Subscribers in the Database
There are 50 Categories-Subscribers in the Database
There are 1 Newsletter in the Database
There are 0 Attachment in the Database
There are 134 Protocol in the Database
There are 15 Task in the Database
There are 0 Bounce Mails in the Database

goffy

Quite a regular
Posted on: 8/30 10:34
goffy
goffy (Show more)
Quite a regular
Posts: 369
Since: 2010/12/27
#2

Re: Problem with xNewsletter

Hi

if you work with newsletters you have to take care about a few things:
1) if you use php sendmail function normally the provider has a limit how much you can send per hour/day. you have to look into your website host settings to find out this limit or to contact your hoster.
if you exceed this limit you get "failed-> Could not instantiate mail function."

it seems (what I see in your posting) you exceeded this limit, because once you reached it it doesn't matter whether you want to send 1 or 100 mail

2) if you use existing email via smtp then you have to check the limit of your email account

3) sending in blocks:
if you have e.g. a limit of 100 mails per hour you can set the preference to e.g. 90 every hour.
the first 90 mails are sended immediately, then xnewsletter is waiting for a new call.
the call must be done by cron.php
as XOOPS itself has no cron function you have to set it up e.g. in your hosting package. most of hoster which provides webspace and email provides also the possibility to set up a cron job. This external cron job must call cron.php each hour.
if you are not sure how to set up a cron job then ask your provider, because this is different in the various existing systems

for more information you should also read https://app.gitbook.com/@xoops/s/xnewsletter-tutorial/

Zap_English

Quite a regular
Posted on: 8/30 11:45
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 381
Since: 2016/5/24
#3

Re: Problem with xNewsletter

I gave my host all the options available in xNewsletter and they told me to use php mail()

And they tell me my limit is 200 emails per hour

Zap_English

Quite a regular
Posted on: 8/30 12:46
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 381
Since: 2016/5/24
#4

Re: Problem with xNewsletter

I had them set up a cron job to send 10 every 10 minutes

So do I have to click on the send icon to initiate it, or will cron.php do it?

Zap_English

Quite a regular
Posted on: 8/30 12:51
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 381
Since: 2016/5/24
#5

Re: Problem with xNewsletter

I guess the cron job does it

but I'm still getting errors

Error sending newsletter: 5 of 5 newsletters not sent

but there are 15 emails in the list with failed-> Could not instantiate mail function.

goffy

Quite a regular
Posted on: 8/30 20:07
goffy
goffy (Show more)
Quite a regular
Posts: 369
Since: 2010/12/27
#6

Re: Problem with xNewsletter

hi

no idea for the moment. can you create an admin login for me and send me the user/pwd by PM?

Zap_English

Quite a regular
Posted on: 9/30 13:11
Zap_English
Zap_English (Show more)
Quite a regular
Posts: 381
Since: 2016/5/24
#7

Re: Problem with xNewsletter

I got the same error again this month

After the first 10 emails it stops sending

It's set for 10 emails every 10 minutes and my host increased my email limit to 2000 per hour

Mamba

Moderator
Posted on: 10/6 1:38
Mamba
Mamba (Show more)
Moderator
Posts: 10779
Since: 2004/4/23
#8

Re: Problem with xNewsletter

We've made some updates to the module, you might test the 1.4 Beta 1 release and see if it solved some of your issues:

https://github.com/XoopsModules25x/xnewsletter/releases
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs