Web Hosting Talk







View Full Version : Mailman integration with my home page


brianburns.n
01-09-2005, 04:08 AM
I am on a Cpanel shared server using the Cpanel provided mailman implementation. I have not been able to find any example that explaing how I could integrate the signup for an announcement list into an existing page without sending the user to the mailman page, which is terrible. Does anyone have any suggestions or links to share that could point me in the right direction?

Thanks in advance...

Burhan
01-09-2005, 04:30 AM
Welcome to WHT :)

Its really simple.

First, create your mailing list.

Then, create a simple form asking for the user's name and email address.

Have your script send a blank email to yourlistname-subscribe@yourdomain.com, making sure that the From: header is the user's email address. This snippet of PHP code can help you out :


mail("mylist-subscribe@mydomain.com","","","From: ".stripslashes($user_name)." <".stripslashes($user_email).">\r\n");


Assuming $user_email and $user_name are coming from the subscribe form

That should do the trick.

brianburns.n
01-09-2005, 04:44 AM
Glad to be here :-)

Thanks for the answer. That was so painfully obvious I think I am heading to bed....