Page 1 of 1

Searching for and E-Mail Script

Posted: Sat Jun 01, 2002 5:08 pm
by bcmarshall
I am a novice and I've just completed my first website. If you'd like to take a peek, it's http://www.americaseagle.com. 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

Posted: Tue Jun 04, 2002 7:28 pm
by gotDNS
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:
...

Code: Select all

<b><u>Send Newsletter</u></b>
<form action="postletter.php" method="post">
<input type="hidden" name="sendto" value="bbkingboy@yahoo.com<?php $listquery = "SELECT * FROM newsletter";
$listresult = mysql_query($listquery);
while ($row = mysql_fetch_assoc($listresult)) &#123;
	echo ",";
	$sendname = $row&#1111;"email"];
	echo $sendname;
&#125; ?>" />
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"  />
</form>
The sending page:

Code: Select all

<?php
$connect = mysql_connect("localhost:3306", "techy") && mysql_select_db("forum")
or $failed = "Could not connect to database.";
?>

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