Question:
Add email address to distribution list through php?
Richa sharma
2010-08-30 02:15:10 UTC
I am making a website in which those people who contact me through my web site's contact us page, I want to make a distribution list of their email addresses.How i can be done through php code.

Please reply ASAP.

Thanks in anticipation.
Three answers:
?
2010-08-30 04:15:03 UTC
Before you collect the message from your visitor, read their email address and store it in a mysql table. The list will increase with each message you receive.

Use that list to send you e-newsletter.
2016-04-21 02:24:56 UTC
add multiple email addresses excel outlook distribution list
Yogi Liman
2010-08-30 21:26:23 UTC
In the Contact Us page, add a script to record the submitted form to a database. For example:



INSERT INTO email_list (full_name, email_address) VALUES ('John Doe', 'john@doe.com');



When you are ready to send an e-mail to everybody in the database. Grab all information. For example:



SELECT * FROM email_list



Once you grab all information, use PHPMailer's BCC function to send one e-mail to all e-mail addresses at once.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...