Elxis CMS Forum

Extensions => Modules => Topic started by: Prema on October 17, 2014, 22:10:21

Title: mod_newsletter for Elxis 4.x, problems
Post by: Prema on October 17, 2014, 22:10:21
hello to all the forum
today after entering all subscribers to the old site in the newsletter module, I made my first news with manual sending of the text.
(I had previously done the tests in the manual sending news to my e-mail and everything worked.)
I noticed that the news sent by the site came 5 times to my e-mail. I called a few members that I have confirmed the same reception.
I was logged in as an administrator, and management modules are passed to the control panel, and I found myself with a blank page but url in administration. I checked the frontend of the site and refresh the home page after I saw the blank page and in the upper left corner the name of the newsletter module.
I had to restore the site by deleting the file
elxis_hashes xxxxxxxxxxx.php
I have temporarily disabled the newsletter module

line 49 of the file to edit is multilingual:
'WANT_UNSUB' => 'Se non volete piĆ¹ ricevere le newsletter da noi visitate il nostro sito e utilizzare %s come Codice di Rimozione per cancellare l\'iscrizione.',

thanks for the replies
prema
Title: Re: mod_newsletter for Elxis 4.x, problems
Post by: datahell on October 18, 2014, 14:01:15
This file must be writeable:
modules/mod_newsletter/inc/lastcompleted.txt

Open Elxis error log and copy-paste here the error message the module generates.
Elxis administration : Site > Logs > error.log

Title: Re: mod_newsletter for Elxis 4.x, problems
Post by: Prema on October 18, 2014, 15:06:49
This file must be writeable:
modules/mod_newsletter/inc/lastcompleted.txt

Open Elxis error log and copy-paste here the error message the module generates.
Elxis administration : Site > Logs > error.log

Hi
Datahell
I do not find errors that are related to the module mod_newsletter
but I find this created around the time I sent the newsletter

[2014-10-17 17:43:06]    ERROR in file /var/www/vhosts/ducatodipiazzapontida.it/httpdocs/includes/libraries/swift/classes/Swift/Transport/AbstractSmtpTransport.php line 386
Uncaught exception 'Swift_TransportException' with message 'Expected response code 250 but got code "554", with message "554 5.7.1 <END-OF-MESSAGE>: End-of-data rejected: only 100 recipients per hour for ducatodipiazzapontida@46610.net
"' in /var/www/vhosts/ducatodipiazzapontida.it/httpdocs/includes/libraries/swift/classes/Swift/Transport/AbstractSmtpTransport.php:386
Stack trace:
#0 /var/www/vhosts/ducatodipiazzapontida.it/httpdocs/includes/libraries/swift/classes/Swift/Transport/AbstractSmtpTransport.php(281): Swift_Transport_AbstractSmtpTransport->_assertResponseCode('554 5.7.1 <END-...', Array)
#1 /var/www/vhosts/ducatodipiazzapontida.it/httpdocs/includes/libraries/swift/classes/Swift/Transport/EsmtpTransport.php(245): Swift_Transport_AbstractSmtpTransport->executeCommand('??.??', Array, Array)
#2 /var/www/vhosts/ducatodipiazzapontida.it/httpdocs/includes/libraries/swift/classes/Swift/Transport/AbstractSmtpTransport.php(335): Swift_Transport_EsmtpTransport->executeCommand('??.??', Array)
#3 /var/www/vhos



I set max 100 e-mails per cycle for reasons of spam.
Today I heard the manager and he told me that I have a max of 200 emails every hour ..... the problem that the members are many more ...
The module has the Time lock (which I set) can not have even the time limit of e-mail to be sent)

thanks

prema
Title: Re: mod_newsletter for Elxis 4.x, problems
Post by: datahell on October 18, 2014, 18:00:43
To bypass this limitation of your mail server you need a special modification of the module to send no more than 200 emails per hour.
Title: mod_newsletter for Elxis 4.x version 1.3
Post by: Prema on November 07, 2014, 19:37:09
hello
I installed the mod_newsletter Version 1.3, I tried to do a test shipment to my e-mail last night and everything worked. today at twelve p.m. downloading msg from the e-mail I found 154 msg test newsletter identical when tested. to halt the continued posting I had to set the module is not public ...

also does not work in Italian (unlike before)

Please do not reply to this e-mail.
If you dont want to receive the newsletter by us any blackberries visit our website and use as TEST1415306940 Removal Code to unsubscri
be.

thanks for the replies
Title: Re: mod_newsletter for Elxis 4.x, problems
Post by: datahell on November 07, 2014, 21:21:44
In order for Newsletter v1.3+ to work correctly this file needs to be writeable:
modules/mod_newsletter/inc/worker.php

If it is not writeable you will receive multiple emails like you did.

To stop sending emails you don't need to unpublish the module. You can set it to "collect subscriptions only".
What you mean it doesn't work in Italian? The messages within the e-mail text are written in the subscriber's preferable language. If he has no language preference the messages are written in English.
Title: Re: mod_newsletter for Elxis 4.x, problems
Post by: Prema on November 09, 2014, 14:55:19
Hello
Quote
If it is not writeable you will receive multiple emails like you did.
is writable
Quote
To stop sending emails you don't need to unpublish the module. You can set it to "collect subscriptions only".
set this automatic (this setting can be seen only by selecting automatic), but I did a test sending manual save the settings of the module
Quote
What you mean it doesn't work in Italian? The messages within the e-mail text are written in the subscriber's preferable language. If he has no language preference the messages are written in English.
I have set only the Italian language

thanks
Title: Re: mod_newsletter for Elxis 4.x, problems
Post by: datahell on November 09, 2014, 19:18:14
The module works fine, I have tested it several times.
If Test mode = Yes then better set the Mode to Manual (or File), not to Automatic.

I repeat, if the subscribers  have not set their preferable language the messages within e-mails are written into English (regardless the site's language). To change that open file modules/mod_newsletter.php and change this to Italian:
if (($idx == '') || !isset($mnl_lang[$idx])) { $idx = 'en'; }
to this:
if (($idx == '') || !isset($mnl_lang[$idx])) { $idx = 'it'; }
Title: Re: mod_newsletter for Elxis 4.x, problems
Post by: Prema on November 11, 2014, 18:07:57
Hi Datahell
I do not send the newsletter automatically, only manual.
The problem for me and that save if the module in manual mode, and I do the test module ignores the parameter to collect e-mail (which can be seen only in automatic mode) and continues to send all the time.
thanks