PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
It is currently Mon Feb 18, 2019 8:30 am

All times are UTC - 5 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Jun 01, 2002 5:08 pm 
Forum Newbie

Joined: Sat Jun 01, 2002 5:08 pm
Posts: 5
I am a novice and I've just completed my first website. If you'd like to take a peek, it's The site is ready to belaunched but for a mailing system that I'm still looking for.

I'm searching for a script that will give me several features and capabilities. I first want to have the ability to harvest e-mail addresses from site visitors if they choose to leave it. I'd like to be able to get more data than just the address, perhaps name, interests, and other things. I'd like that data in some sort of database in order to sort it, and then use the database to initiate targeted or mass mailings of a newsletter or advertising info. I need an efficient way of unsubscribing those that no longer want to receive mailings. I need a contact us screen which will generate an autoresponse and an e-mail to me, so that I can reply. And ideally, I'd also like to have a "refer a friend to this site" screen where
people can enter the e-mail addresses of friends.

Does anyone know of anything that is capable of all of these requirements? Any assistance would be greatly appreciated.

Bruce Marshall

 Post subject:
PostPosted: Tue Jun 04, 2002 7:28 pm 
Forum Contributor
User avatar

Joined: Tue May 07, 2002 5:53 pm
Posts: 217
Location: West Chester, PA
um, I'm hoping the music was at the request of a client? Generally, music is a bad idea...

As for the mailing system, ur asking a lot. But i can help somewhat:

Mail page:
Syntax: [ Download ] [ Hide ]
<b><u>Send Newsletter</u></b>
<form action="postletter.php" method="post">
<input type="hidden" name="sendto" value="<?php $listquery = "SELECT * FROM newsletter";
$listresult = mysql_query($listquery);
while ($row = mysql_fetch_assoc($listresult)) {
        echo "
        $sendname = $rowї"
        echo $sendname;
} ?>"
Subject: <input type="text" name="SUBJECT" size="15" value="Techy newsletter: " />
<br />
Message:<br />
<textarea rows="10" cols="35" name="MESSAGE"></textarea>
<INPUT TYPE="submit" value="Send"  />

The sending page:

Syntax: [ Download ] [ Hide ]
$connect = mysql_connect("localhost:3306", "techy") && mysql_select_db("forum")
or $failed = "Could not connect to database.";

<title>Techy Board</title>
<link rel="stylesheet" type="text/css" href="default.css" />
<body marginheight="0" marginwith="0" topmargin="0" leftmargin="0">
$TO = "";
$HEADER = "From: techy@techy.techy\r\n";
$HEADER .= "Bcc: $sendto\r\n";
   //send mail - $subject & $contents come from surfer input
   // redirect back to url visitor came from
Newsletter sent! <a href="index.php">< Home</a>

Hope i helped... :wink:

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours

Who is online

Users browsing this forum: No registered users and 4 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group