Forums / Extensions / CJW Newsletter - how it works?

CJW Newsletter - how it works?

Author Message

Fátima Chapri

Monday 25 April 2011 12:24:55 am

Hi,

I need to create a newsletter subscription and I have the CJW newsletter extenssion installed.

I searched for the ducumentation but without success. The only ducumentation i have is the install.txt file that comes with the extenssion but there are some points that I don't understand.

Can anyone please give me a hand.

Thanks in advance.

Romain Bremaud

Friday 27 May 2011 1:14:28 am

Hello Fatima,

Can you explain more precisly that you don't understand ? Maybe I can help you.

Romain

Romain Bremaud
Les clefs du net

Fátima Chapri

Saturday 28 May 2011 12:22:27 pm

Hi Romain and thanks for your answer.

I've been trying to put the newsletter to work. It's already installed and the users can subscribe to it.

But I don't know how to send the newsletters.

Romain Bremaud

Monday 30 May 2011 5:35:43 am

Hello Fatima.

In the newsletter tab you should create a cjw_newsletter_edition. Inside you can create cjw_newsletter_article. After that your newsletter become a "draft". 

After click on your draft newsletter. You have two buttons one for send a test and another for send the newsletter. 

Verify the settings in cjw_newsletter.ini : 

[NewsletterMailSettings]
# smtp, sendmail, file
# newsletterTransportMethodCronjob=file
# test newsletter

TransportMethodPreview=sendmail
# subscribe, infomailTransportMethodDirectly=file
# where to store mails send by TransportMethod = fileFile

TransportMailDir=var/log/mail
# http://ezcomponents.org/docs/api/latest/introduction_Mail.html#mta-qmail# HeaderLineEnding#    auto - try to find correct settings#           default is LF#    CRLF - windows - \r\n#    CR   - mac - \r#    LF   - UNIX-MACOSX - \nHeaderLineEnding=auto
# Configuration for SMTP

SmtpTransportServer=

SmtpTransportPort=25

SmtpTransportUser=Smtp

TransportPassword=# Connection type in SMTP: <empty>(no encryption)|ssl|sslv2|sslv3|tls

SmtpTransportConnectionType=

You have tree methods for sending mail. mail/smtp/file

In a first time check if your newsletter test works. After you can send the real newsletter. 

You sould execute two scripts for sending the newsletter :

-   php runcronjobs.php -s siteaccess cjw_newsletter_mailqueue_create

- php runcronjobs.php -s siteaccess cjw_newsletter_mailqueue_process

 

Romain

Romain Bremaud
Les clefs du net

Fátima Chapri

Thursday 02 June 2011 12:59:19 am

Hi Romain.

Only now i realized that my newsletter were send out, but a specific folder var/log/mail, because my transport method was file.

Now I have the  correct settings, but I can't send a test newsletter and even create a new newsletter edition in my newsletter list, because the button "create newsletter here" is disabled.

Is there any other setting I have to configure?

Thanks.

Romain Bremaud

Tuesday 07 June 2011 1:17:32 am

Hi Fatima

Maybe you have the good right for create a newsletter. Are you connected with the admin account ?

In the order : 

Newsletter Root -> Newsletter System -> Newsletter List -> Newsletter edition -> (Newsletter Article)

 

Romain

Romain Bremaud
Les clefs du net

Fátima Chapri

Thursday 09 June 2011 2:55:24 am

Hi Romain,

My user didn't have the proper rights to create or to send the newsletter.

I tried now to check if your newsletter test works. I've inserted my e-mail as test, and the result was:

Test newsletter sent result: Newsletter Edition 1

And a table with the following details:

Nr Subject Email Sender
Email Receiver
Content Type
Charset
Transport
1. [Newsletter] Newsletter Edition 1 sender_mail@example.com
receiver_mail@example.com
multipart/alternative
utf-8
smtp
       

But I didn't receive any e-mail.

I tried runing the cronjob:

/usr/bin/php -C runcronjobs.php cjw_newsletter

and cleared the cache. But nothing.

 

Is there anything I'm missing?

Romain Bremaud

Friday 10 June 2011 5:27:55 am

Hi Fatima

Several things :

- You use the smtp method are you sure your smtp works ?

- Try to use the send mail method in cjw_newsletter.ini 

# test newsletter

TransportMethodPreview=sendmail

- The test and the real newsletter are independent.

- check in the log var/plain_site/cjw_newsletter if you can see anything

Romain 

Romain Bremaud
Les clefs du net

Fátima Chapri

Monday 13 June 2011 12:49:10 am

Hi,

Finally, the newsletter is working. The log file had some errors.

Thank's a lot for your great help.

Fatima.

eZ debug

Timing: Jan 29 2025 13:42:06
Script start
Timing: Jan 29 2025 13:42:06
Module start 'content'
Timing: Jan 29 2025 13:42:06
Module end 'content'
Timing: Jan 29 2025 13:42:06
Script end

Main resources:

Total runtime0.1251 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9297180.8438
Module start 'content' 0.00630.0052 768.7734102.7891
Module end 'content' 0.01160.1134 871.5625530.0078
Script end 0.1250  1,401.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.5005200.0002
Check MTime0.00120.9888200.0001
Mysql Total
Database connection0.00110.897910.0011
Mysqli_queries0.085568.35741410.0006
Looping result0.00100.76561390.0000
Template Total0.113190.510.1131
Template load0.00070.568510.0007
Template processing0.112489.888910.1124
Override
Cache load0.00050.393510.0005
Sytem overhead
Fetch class attribute can translate value0.00040.355910.0004
XML
Image XML parsing0.00030.207010.0003
General
dbfile0.00493.9521200.0002
String conversion0.00000.004030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs