cjw newsletter, no mails sent

Author Message

Patrick Maynard

Thursday 14 October 2010 2:08:12 am

Hello,
I have installed cjw_newsletter, the test newsletter works, but the newsletter is not sent.
The mail for subscribe is not sent anymore.
I use a smtp server in my enterprise.
After the cronjob for mailqueue create, the message is :

Using siteaccess fre for cronjob
Running cronjob part 'cjw_newsletter_mailqueue_create'
Running extension/cjw_newsletter/cronjobs/cjw_newsletter_mailqueue_create.php at: 13/10/2010 15:17
START: cjw_newsletter_mailqueue_create
--
>> START: check nl users with status STATUS_PENDING_EZ_USER_REGISTER
>>> NlUser Objects with STATUS_PENDING_EZ_USER_REGISTER found: 0
>> END: check nl users
--
--
>> START: check NlEditionSend objects with status STATUS_WAIT_FOR_PROCESS
>>> NlEditionSend objects with STATUS_WAIT_FOR_PROCESS found: 1
## Procsessing: cjw_newsletter_mailqueue_create - sendObjectId: 5
++ Find SubscriptionObjects with STATUS_APPROVED: 2
++ [SEND_ITEM][1] create new sendItem id: 5
++ [SEND_ITEM][2] create new sendItem id: 6
+ [STATUS_MAILQUEUE_CREATED] 2 sendItems has be processed (create / or do nothing) SendId: 5
>> END: check NlEditionSend objects
--
END: cjw_newsletter_mailqueue_create
Completing extension/cjw_newsletter/cronjobs/cjw_newsletter_mailqueue_create.php at: 13/10/2010 15:17
Elapsed time: 00:00:00

After the cronjob for process the message is :
Using siteaccess fre for cronjob
Running cronjob part 'cjw_newsletter_mailqueue_process'
Running extension/cjw_newsletter/cronjobs/cjw_newsletter_mailqueue_process.php at: 13/10/2010 15:18
START: cjw_newsletter_mailqueue_process
Status set: editonSend STATUS_MAILQUEUE_PROCESS_STARTED
50.0% [SEND] 1/2 Newsletter send item 5 processed.
100.0% [SEND] 2/2 Newsletter send item 6 processed.
Status set: editonSend STATUS_MAILQUEUE_PROCESS_FINISHED

END: cjw_newsletter_mailqueue_process
Completing extension/cjw_newsletter/cronjobs/cjw_newsletter_mailqueue_process.php at: 13/10/2010 15:18
Elapsed time: 00:00:00

The cjw_newsletter.ini.append.php looks like :

<?php /* #?ini charset="utf-8"? */

[NewsletterSettings]
# NodeId of container where the system is looking for newsletter systems
RootFolderNodeId=300 (it's the id of newletter root)

[NewsletterMailSettings]
# test newsletter
TransportMethodPreview=smtp

# Configuration for SMTP
SmtpTransportServer=10.... (ip of my smtp server)

# settings for mail send out by subscribe, unsubscribe
EmailSender=mail of the admin
EmailSenderName=gestionnaire de la newsletter

# string the subject of all mails is starting with
EmailSubjectPrefix=[object of newsletter]

*/ ?>

-----------------------------------------------------------------------------------

I have an another question :
I create the newsletter from admin interface, I have the subscription form available for anonymous and I would like the display of the newsletter in frontend for anonymous in a rubric.

-----------------------------------------------------------

Is it better to post here or on projects.ez.no for questions about an extension ?


Thank you.

Patrick Maynard

Thursday 14 October 2010 4:33:40 am

Hello !

I have forgotten two parameters in cjw_newsletter.ini.append.php :

# newsletter
TransportMethodCronjob=smtp
# subscribe, infomail
TransportMethodDirectly=smtp

It works fine !

Now my problem is to display the content of a newsletter on the frontend in a rubric of the site, like other documents.

Best regards.

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 10:37:18
Script start
Timing: Jan 18 2025 10:37:18
Module start 'layout'
Timing: Jan 18 2025 10:37:18
Module start 'content'
Timing: Jan 18 2025 10:37:19
Module end 'content'
Timing: Jan 18 2025 10:37:19
Script end

Main resources:

Total runtime0.9609 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.0313152.6406
Module start 'layout' 0.00670.0029 740.671939.4844
Module start 'content' 0.00960.9498 780.1563478.6641
Module end 'content' 0.95940.0015 1,258.820312.1484
Script end 0.9608  1,270.9688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3249160.0002
Check MTime0.00130.1322160.0001
Mysql Total
Database connection0.00100.099010.0010
Mysqli_queries0.898193.4684520.0173
Looping result0.00040.0458500.0000
Template Total0.930296.820.4651
Template load0.00210.222520.0011
Template processing0.928096.579720.4640
Template load and register function0.00020.015810.0002
states
state_id_array0.00080.082510.0008
state_identifier_array0.00120.123320.0006
Override
Cache load0.00180.1876900.0000
Sytem overhead
Fetch class attribute can translate value0.00060.064010.0006
Fetch class attribute name0.00180.189330.0006
XML
Image XML parsing0.00260.266910.0026
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00280.2960160.0002
String conversion0.00000.000740.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs