Multi-recipient Email FormsThe need to create an option on forms
Page 1 of 1
7 Replies - 1289 Views - Last Post: 15 March 2002 - 08:22 PM
#1
Multi-recipient Email Forms
Posted 19 May 2001 - 09:56 PM
Thanks in advance ;)
Replies To: Multi-recipient Email Forms
#2
Re: Multi-recipient Email Forms
Posted 20 May 2001 - 05:32 AM
<?
if(!$submit){
?>
<form action="<? echo $PHP_SELF ?>" method="post">
From:
<input name="from"><br>
Subject:
<input name="subject"><br><br>
Message:<br>
<textarea name="message" rows="8" cols="30"></textarea><br><br>
To:
<select name="who">
<option>---
<option>Paradox
<option>RedBarron
</select><br>
<input type="submit" name="submit" value="Send">
</form>
<?
}else{
if($who == "Paradox"){
$email = "paradox@paradoxmedia.net";
}else if($who == "RedBarron"){
$email = "red@barron.com";
}else{
die("You did not select who to send a message to");
}
if(!$from or !$subject or !$message or !$to){
die("Make sure that all the fields are filled in correctly");
}
$send = @mail("$email", "$subject", $message, "From: $from");
if($send){
$result = "Thanks $from, your message has been sent.";
}else{
$result = "There was an error in sending your message";
}
echo $result;
}
?>
Above is a script I just wrote to email people. Type your name, your message, the subject, and select a recipient.
ParadoxMailer
Features:
-Support for unlimited recipients
-Blank field checking
-Error reporting
Free for commercial or personal use
...lol
#3
Re: Multi-recipient Email Forms
Posted 20 May 2001 - 05:46 AM
#4
Re: Multi-recipient Email Forms
Posted 20 May 2001 - 06:58 AM
#5
Re: Multi-recipient Email Forms
Posted 20 May 2001 - 07:16 AM
#6
Re: Multi-recipient Email Forms
Posted 20 May 2001 - 09:28 AM
#7
Re: Multi-recipient Email Forms
Posted 20 May 2001 - 04:50 PM
Almost everything is editable, if you need help with customization feel free to ask
#8
Re: Multi-recipient Email Forms
Posted 15 March 2002 - 08:22 PM
::a dropdown box to select a product and have that selection determine the email recipient
|
|

New Topic/Question
Reply


MultiQuote




|