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.