Results 1 to 2 of 2
I am looking for a php software for mailing list. There is some of the free and some commercial.
But I can't find news letter software which will send a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-09-2011 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 19
Mailing lists
I am looking for a php software for mailing list. There is some of the free and some commercial.
But I can't find news letter software which will send a differend group list an email every 3 months, another group list every 6 months, etc. The same email to differend group list and differend time. All automatically, so when I add a new user to certain group ge will get an email when it is defined for that list group.
I hope someone know some php script for that...
Maybe with cron job....
- 11-10-2011 #2
I usually use a BASH script to fire off something like that.
Those named PHP scripts generate the content. One is plaintext, the other is HTML. You can make one of these for each group. And make a cronjob.Code:#!/bin/bash EMAIL="group@mail.com" echo "To: $EMAIL" echo "Subject: `date +%D` Newsletter" echo "MIME-Version: 1.0" echo 'Content-Type: multipart/alternative; boundary=boundary42' echo "--boundary42" echo "Content-Type: text/plain; charset=ISO-8859-1" echo "Content-Transfer-Encoding: 7bit" echo "Content-Disposition: inline" echo "" echo "`php /path/to/generate-plaintext-version.php`" echo "" echo "--boundary42" echo "Content-Type: text/html; charset=ISO-8859-1" echo "Content-Transfer-Encoding: 7bit" echo "Content-Disposition: inline" echo "" echo "`php /path/to/generate-html-version.php`" echo "" echo "--boundary42--" ) | /usr/lib/sendmail $EMAIL
Code:* * * /3 * root /run/3/months/script * * * /6 * root /run/6/months/script
linux user # 503963


Reply With Quote
