Creating an ez newsletter

Author Message

David Jones

Thursday 23 November 2006 2:06:39 am

I really don't understand how I create a newsletter to be sent.

I have enabled the extension and have 3 new tabs. Newsletter, List manager, Bounce manager.

I have successfully run the cron which sends the newsletters (although there is nothing yet to send).

I've created a newsletter class (Date, Title, Body).

I've created a test list in the list manager and added a couple of subscribers.

I've created a newsletter type (test) with the valid content class (newsletter), subscription list (test list)

I've selected an inbox (what does that do) and a location for the placement of the newsletters.

I've then create a newsletter (from my class) and placed in the newsletter folder.

Run the cron job and this is my output.

Using siteaccess admin for cronjob
Running cronjob part 'send_newsletter'
Running extension/ezxnewsletter/cronjobs/send_newsletter.php
Building send list ...
Building sending emails ...

I believe that this means that it is not finding my newsletter to try and send it.

What am I missing?

Thanks

David Jones

Friday 24 November 2006 2:13:52 am

Thanks to Tobias I have created a newsletter.

Thanks

However I am having problems sending it

This is my output (with -d added to cron command)

Using siteaccess admin for cronjob
Running cronjob part 'send_newsletter'
Running extension/ezxnewsletter/cronjobs/send_newsletter.php
Fetching prepared newsletter...
Sending newsletter...


#################################### DEBUG ####################################
Notice: (eZMySQLDB::query(0.000 ms) query number per page:0)
SET NAMES 'utf8'

Timing: ()
Script extension/ezxnewsletter/cronjobs/send_newsletter.php starting

Timing: ()
Script extension/ezxnewsletter/cronjobs/send_newsletter.php done


Total script time: 0.9973 sec

Whats going on?

Thanks

David Jones

Friday 24 November 2006 3:03:41 am

Update on this one.

I've managed to get it to give me an error

Any ideas on this?

Using siteaccess admin for cronjob
Running cronjob part 'send_newsletter'
Running extension/ezxnewsletter/cronjobs/send_newsletter.php
Fetching prepared newsletter...
Sending newsletter...
Sending messages for test 2
Sent 0 messages for newsletter : test 2


#################################### DEBUG ####################################
Notice: (eZMySQLDB::query(0.000 ms) query number per page:0)
SET NAMES 'utf8'

Timing: ()
Script extension/ezxnewsletter/cronjobs/send_newsletter.php starting

Error: (eZSys::serverVariable)
Server variable 'HTTP_HOST' does not exist

Warning: (PHP)
Undefined variable:  imageListName in E:\ApacheSites\eZpublish\ezpublish\extensi
on\ezxnewsletter\classes\eznewsletter.php on line 688

Error: (eZSys::serverVariable)
Server variable 'HTTP_HOST' does not exist

Warning: (PHP)
Undefined variable:  imageListName in E:\ApacheSites\eZpublish\ezpublish\extensi
on\ezxnewsletter\classes\eznewsletter.php on line 688

Error: (eZSys::serverVariable)
Server variable 'HTTP_HOST' does not exist

Warning: (PHP)
Undefined variable:  imageListName in E:\ApacheSites\eZpublish\ezpublish\extensi
on\ezxnewsletter\classes\eznewsletter.php on line 688

Error: (eZSys::serverVariable)
Server variable 'HTTP_HOST' does not exist

Warning: (PHP)
Undefined variable:  imageListName in E:\ApacheSites\eZpublish\ezpublish\extensi
on\ezxnewsletter\classes\eznewsletter.php on line 688

Timing: ()
Script extension/ezxnewsletter/cronjobs/send_newsletter.php done


Total script time: 0.8789 sec

Tobias Struckmeier

Friday 24 November 2006 6:23:07 am

Did you assign a subscription list to the newsletter type and have also some subscribers on it? At least one? Elsewise it has nothing to send out :)

Tobias Struckmeier

Friday 24 November 2006 6:25:18 am

And the error implies that there is still something bogus in your webserver setup.

David Jones

Friday 24 November 2006 6:39:19 am

Yes, there is a subscription list assigned and it has 3 subscribers.

The build cron job runs fine.

David Jones

Friday 24 November 2006 7:24:55 am

I've tried setting the transport to both SMTP and sendmail and both generate the same debug error.

Any idea what HTTP_HOST does not exist means?

David Jones

Monday 27 November 2006 1:38:20 am

This is still an issue.

Can anybody help?

Alex Zuev

Thursday 30 November 2006 7:45:47 am

---spam deleted---

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 19 2025 03:39:47
Script start
Timing: Jan 19 2025 03:39:47
Module start 'layout'
Timing: Jan 19 2025 03:39:47
Module start 'content'
Timing: Jan 19 2025 03:39:48
Module end 'content'
Timing: Jan 19 2025 03:39:48
Script end

Main resources:

Total runtime1.1699 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.1563152.6250
Module start 'layout' 0.00730.0035 741.781339.4453
Module start 'content' 0.01081.1576 781.2266604.9844
Module end 'content' 1.16840.0015 1,386.210920.1641
Script end 1.1699  1,406.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2895160.0002
Check MTime0.00130.1117160.0001
Mysql Total
Database connection0.00100.084810.0010
Mysqli_queries1.097293.7814770.0142
Looping result0.00080.0712750.0000
Template Total1.129596.520.5648
Template load0.00210.178120.0010
Template processing1.127496.369120.5637
Template load and register function0.00010.011010.0001
states
state_id_array0.00160.135110.0016
state_identifier_array0.00220.183820.0011
Override
Cache load0.00190.1582460.0000
Sytem overhead
Fetch class attribute can translate value0.00060.052130.0002
Fetch class attribute name0.00120.1023100.0001
XML
Image XML parsing0.00170.144530.0006
class_abstraction
Instantiating content class attribute0.00000.0019110.0000
General
dbfile0.00230.1957160.0001
String conversion0.00000.000840.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
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs