Forums / Extensions / eZ Newsletter / Transport setting for cronjob sendout disregarded?

Transport setting for cronjob sendout disregarded?

Author Message

Eirik Alfstad Johansen

Tuesday 17 April 2007 7:15:01 am

Hi,

It seems to me like the transport setting (ezxnewsletter.ini->NewsletterSendout->Transport) is disregarded, and that the cronjob sendout uses SMTP regardless.

Is this true?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Tobias Struckmeier

Wednesday 18 April 2007 3:42:16 am

Hi Eirik,

I can hardly imagine that this happens. We used the version 1.0 in some projects now without having an issue like that.
Which version do you use?
Can you use the new version from svn trunk, or is it a running project?
Are you sure that you don't have any overrides which switch it to SMTP?

Cheers,
Tobias

Eirik Alfstad Johansen

Wednesday 18 April 2007 3:50:10 am

Hi Tobias,

Thanks for your reply. I'll look into this further and get back to you. However, while I have you here:

I've heard mention of a doc, but can't seem to find it. Does it exist, and if so, where can I find it?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Wednesday 18 April 2007 5:19:20 am

Hi Tobias,

I can't seemt to understand this. In my ezxnewsletter, I have the following:

[NewsletterSendout]
#Select transport class for newsletter sendout. Valid values are SMTP, sendmail or File for pregeneration.
#If SMTP selected, SMTP server must be defined in siteaccess or override settings.
#
#Transport class for preview sendout
PreviewTransport=sendmail
#Transport class for newsletter sendout via cronjob
Transport=sendmail

Yet, when I run "php -C runcronjobs.php" from shell, I get the following output:

Running extension/ezxnewsletter/cronjobs/cluster_send.php
Setting RoundRobin packagesize to: 500
Found 1 Account(s)...
Connected to dns1.netmaking.net
Available accounts: 1

Fetching mail source files
Sending 1 emails
SMTP ERROR: AUTH command failed, output: 504  authentication mechanism not supported

When I comment out the one SMTP account I've specified in ezxsmtpclustersettings.ini, I get the following:

Running extension/ezxnewsletter/cronjobs/cluster_send.php
Setting RoundRobin packagesize to: 500
Found 0 Account(s)...
No valid mailserver accounts found!

I'm assuming I'm missing something obvious here. :)

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Tobias Struckmeier

Wednesday 18 April 2007 6:09:38 am

Hi Eirik.

when you want to send the newsletters with sendmail, you have to use the send_newsletter (and previously the build_list part) cronjob instead of the cluster_send cronjob.

I will shortly explain the supported transports and which cronjobs you need to use them.

SMTP
---------
This transport sends the newsletters via SMTP. It uses the SMTP settings configured in eZ Publish. The emails are send with the cronjobpart "send_newsletter".

Sendmail
-------------
The php mail function (sendmail) is used for the sendouts. The emails are send also with the cronjobpart "send_newsletter" (See hint at the end of this post as well).
You have the possibility to change the sendmail parameters in settings/ezsendmailsettings.ini to work with your mailserver. The default should work with the most sendmail compatible mailservers.

File
-----
The file transport writes the email source to the filesystem first. Afterwards the cluster_send cronjob processes the directory and distributes it to several SMTP servers defined in ezsmtpclustersettings.ini. Ask me about details if you need.

Conclusion is that you use the following commandline to send your newsletters:

php ./runcrojobs -s newsletter_editor send_newsletter

Note its important to use the "-s $siteaccess" parameter to define the siteaccess that should be used during sendout. It is important to ensure that the same overrides are used than in the siteaccess you previewed the newsletter. Otherwise you might have different results.

Please ensure also that you have in one of your cronjob.ini a part definition like this

[CronjobPart-send_newsletter]
Scripts[]
Scripts[]=build_list.php
Scripts[]=send_newsletter.php

In the first distributed version it was not by default this way and you had to call build_list seperately.

I hope with that I was able to answer all you questions. :)

Cheers

Eirik Alfstad Johansen

Thursday 19 April 2007 5:06:09 am

Thanks a lot, Tobias! That was enough for me to get going.

BTW, the documentation I was refering to - does it exist?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Tobias Struckmeier

Thursday 19 April 2007 9:58:28 am

Good :)

Sorry I forgot about the documentation. We will release some new documentation with the newsletter 1.5 release around the end of the month.

eZ debug

Timing: Jan 18 2025 03:07:38
Script start
Timing: Jan 18 2025 03:07:38
Module start 'content'
Timing: Jan 18 2025 03:07:39
Module end 'content'
Timing: Jan 18 2025 03:07:39
Script end

Main resources:

Total runtime0.5187 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 589.1094180.7500
Module start 'content' 0.00850.3940 769.8594611.1172
Module end 'content' 0.40250.1161 1,380.9766345.0313
Script end 0.5186  1,726.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.7736210.0002
Check MTime0.00140.2632210.0001
Mysql Total
Database connection0.00070.126310.0007
Mysqli_queries0.427382.38282080.0021
Looping result0.00210.40752060.0000
Template Total0.492895.020.2464
Template load0.00190.375920.0010
Template processing0.490894.618820.2454
Template load and register function0.00010.016410.0001
states
state_id_array0.00100.191210.0010
state_identifier_array0.00060.122220.0003
Override
Cache load0.00180.3510620.0000
Sytem overhead
Fetch class attribute can translate value0.00150.287630.0005
Fetch class attribute name0.00090.172690.0001
XML
Image XML parsing0.00100.202430.0003
class_abstraction
Instantiating content class attribute0.00000.0063140.0000
General
dbfile0.00240.4559330.0001
String conversion0.00000.001430.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs