Sending mails

Send a testmail

After you completely set up all the options, skin, templates,.. you can send a first testmail. You do this by browsing to the url like: http://example.com/weblog/?skinid=5&checkword=MyCheckword&testmail=you@example.com. This supposes that:

  • http://example.com/weblog/ is the url of you weblog
  • the skinid of the skin you created for your newsletter is ‘5’ (you can see this in the status by when you are in the admin area and hover your mouse over the skin)
  • MyCheckword is the checkword you choose in the options. If you do not provide this, or provide a wrong checkword the plugin won’t send any mail and tell you the checkword is wrong!
  • you@example.com is the e-mail address where you want to receive the testmail. (this should be a valid mail address ofcourse)

You can always send a testmail to check if everything works or while you are creating a new layout for your newsletter (using a different skin), so you can preview it. Testmails are only sent to the address you enter in the url so it is save to send a testmail even if there are already people subscribed to your newsletter.

Sending the newsletter

After you have edited all the options, created a skin, personalized the templates and successfully sent a testmail you can finally start sending your newsletter. You can do this manually, or by using a cronjob. In both cases somebody (or in case of the cronjob: something (meaning: the server)) will have to browse a special page to start sending the newsletter. So to manually send the newsletter enter http://example.com/weblog/?skinid=5&checkword=MyCheckword in the address-bar of your browser and hit enter. If everything is ok your newsletter will now be sent. In this url you have the following parts which you should change according to your nucleus setup:

  • http://example.com/weblog/ is the url of you weblog
  • the skinid of the skin you created for your newsletter is ‘5’ (you can see this in the status by when you are in the admin area and hover your mouse over the skin)
  • MyCheckword is the checkword you choose in the options. If you do not provide this, or provide a wrong checkword the plugin won’t send any mail and tell you the checkword is wrong!

Important: If the blog for which you want to send the newsletter is not the default blog you’ll have to add an extra parameter to the url: &blogid=7 (where 7 is the id of the blog for which you want to send the newsletter)

Setup a cronjob

You can setup a cronjob at the server to automatically send a newsletter every once in a while, by example every day at 10:00. To do this you must be able to create cronjobs at the server (contact your ISP for more info on setting up cronjobs). In the cronjob you should setup a command to let the php interpreter execute the same page as you would visit to manually send the newsletter. The command of a possible cronjob could be: /usr/bin/php /home/user/www/weblog/index.php skind=5 checkword=MyCheckword (where /usr/bin/php is the path to the php-interpreter and /home/user/www/weblog/index.php is the path (not url!) to the index.php file of your weblog. As an alternative it should also be possible to use the ‘curl’-command: curl http://example.com/weblog/?skinid=5&checkword=MyCheckword