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
|