Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: Mailing lists

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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....

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Western Kentucky
    I usually use a BASH script to fire off something like that.
      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
    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.
    * * * /3 * root /run/3/months/script
    * * * /6 * root /run/6/months/script
    linux user # 503963

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts