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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 03:10:32
Script start
Timing: Jan 18 2025 03:10:32
Module start 'layout'
Timing: Jan 18 2025 03:10:32
Module start 'content'
Warning: PHP: E_DEPRECATED Jan 18 2025 03:10:33
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Timing: Jan 18 2025 03:10:33
Module end 'content'
Timing: Jan 18 2025 03:10:33
Script end

Main resources:

Total runtime0.5778 sec
Peak memory usage4,096.0000 KB
Database Queries75

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.0313152.6250
Module start 'layout' 0.00530.0025 741.656339.4531
Module start 'content' 0.00780.5684 781.1094585.8359
Module end 'content' 0.57630.0015 1,366.945320.3750
Script end 0.5778  1,387.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5709160.0002
Check MTime0.00140.2385160.0001
Mysql Total
Database connection0.00070.114010.0007
Mysqli_queries0.467280.8583750.0062
Looping result0.00070.1161730.0000
Template Total0.551195.420.2755
Template load0.00180.304320.0009
Template processing0.549395.065720.2747
Template load and register function0.00010.021110.0001
states
state_id_array0.00120.199710.0012
state_identifier_array0.00080.137420.0004
Override
Cache load0.00170.2963920.0000
Sytem overhead
Fetch class attribute can translate value0.00070.115220.0003
Fetch class attribute name0.00230.397190.0003
XML
Image XML parsing0.00030.052420.0002
class_abstraction
Instantiating content class attribute0.00000.003390.0000
General
dbfile0.00070.1189100.0001
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/header.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/header.tplEdit templateOverride template
3content/datatype/view/ezxmltags/th.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/th.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/tr.tpl<No override>extension/community/design/community/templates/content/datatype/view/ezxmltags/tr.tplEdit templateOverride template
4content/datatype/view/ezxmltags/td.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/td.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
1content/datatype/view/ezxmltags/table.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/table.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 12

Time used to render debug report: 0.0001 secs