Jump to content

Mass Newsletter Mailer - Help


Irresistable

Recommended Posts

I have a fully working newsletter mailinglist..

However.. is there anyone that can give me a rough script of a mailer, that supports html, and connects to the database, as it recieves the "to:" contacts from there, checks for "activated = 2" (1 means not activated, 2 means activated) Those with "2" will recieve the newsletter, but those with 1.. obviously wont.

 

 

Two ways you can code it out...

1. Put the database connection in there, and either put "db server" "db user" "db pass" "db name" for me to change, and with "email from name" and "email from addr" for me to change, for the identy of who's sending the email to the recipent.

 

2. include constants.php (which has the connection details) and use "DB_SERVER" - "DB_USER" - "DB_PASS" - "DB_NAME" and "EMAIL_FROM_NAME" - "EMAIL_FROM_ADDR"

 

For the details. So I wont have to type in my database details in there, it'll get it all from constants.php -

 

A rough idea that works with what is above.. would be good. No need to be perfect, I can sort that out.

 

I cant make a good php mailer code.

eg - To: From: Subject: Message: - with HTML enabled in the message.

If I had one like that, third party or not, the "To:" php behind that, checks the DB table called "emails" checks for all users with activated = 2 (collumn is called activated) and inserts them into the "to:" field box, aswell as to be sent to. - with the To: box read-only. So You cant type into it. Automatically php checks for activated = 2, and inserts them, on loadup of the page.

 

Hope I've made myself clear.

If you don't want to assist with doing this, then you don't have to. It's not as if Im MAKING you to.

 

Thank you for taking up your time to assist me on this. (If you do)

And thank you anyway :)

Link to comment
https://forums.phpfreaks.com/topic/180194-mass-newsletter-mailer-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.