|Feb 21, 2013, 01:23 AM||#1|
Mailing list / Mailchimp?
Hope this is in the right section.. I thought I would ask here because I can't regt much of a response from other forums.
I'm looking for a way that I can send an email to a default address. and once that adress receives the email it triggers it to mail it out to a mailing list of emails.
Is there something out there already like this?
Also I am hoping to do it so the mailing list is 0 maintenance, such as it pulls the email addresses from WHM / Cpanel / WHMCS do I don't have to keep adding and removing emails.
Any advice would be great! thank you
|Feb 21, 2013, 02:26 AM||#2|
If you wish to customize your own solution (i.e. DIY from scratch, no cPanel dependencies):
This is a web development forum so the responses here might be skewed towards LAMP based solutions, i.e. PHP scripts. My response is that way and focuses on cPanel which is very common.
1) Setup an email account with forwarding in cPanel
2) In the forwarding pipe it to a custom PHP script, i.e.
|php -q -n /PATH/TO/SCRIPT/parse.php
3) For parse.php:
Make sure the very first line is:
Chmod 755 (make sure script is executable permissions wise)
Note that the script, invoked this way, reads email from STDIN. You *must* read in the email contents to avoid bounce back, but since you're using the email content for your mailing list, that works out just fine.
Below is an example script to do just that, edit to suit your needs, don't just copy and paste as this is to demonstrate the concept, of course:
Sr. Web Developer, owner GoldTechPro, LLC
Last edited by SrWebDeveloper; Feb 21, 2013 at 02:40 AM. Reason: Added some code to help manual solution
|Thread Tools||Search this Thread|
All times are GMT -5. The time now is 06:36 PM.