Forums / Setup & design / Creating an ez newsletter

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---

eZ debug

Timing: Jan 19 2025 00:25:32
Script start
Timing: Jan 19 2025 00:25:32
Module start 'content'
Timing: Jan 19 2025 00:25:32
Module end 'content'
Timing: Jan 19 2025 00:25:32
Script end

Main resources:

Total runtime0.1879 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.0232 587.7109180.8359
Module start 'content' 0.02320.0058 768.5469101.8984
Module end 'content' 0.02900.1588 870.4453531.0234
Script end 0.1878  1,401.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.8195200.0002
Check MTime0.00140.7277200.0001
Mysql Total
Database connection0.00170.925010.0017
Mysqli_queries0.120964.34011410.0009
Looping result0.00140.73861390.0000
Template Total0.158484.310.1584
Template load0.00120.622210.0012
Template processing0.157283.657010.1572
Override
Cache load0.00060.329510.0006
Sytem overhead
Fetch class attribute can translate value0.00090.458710.0009
XML
Image XML parsing0.00030.152310.0003
General
dbfile0.00743.9135200.0004
String conversion0.00000.003630.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