View previous topic :: View next topic |
Author |
Message |
cagozoe -
Joined: 24 Apr 2005 Posts: 23
|
Posted: Thu Apr 28, 2005 7:17 pm Post subject: EMAIL FORM DOES ANYONE HAVE ONE THAT WORKS? |
|
|
I have been trying to setup so a form so that the information will be emailed to me.
So far all i get is errors and no results.
I have tried sendmail form but still nothing.
http://www.cvb.dns2go.com/gandm/sendmail.html
any help on this would be greatful.
I have other perl scripts that work file that write to file on my computer and they work fine, but no sendmail. |
|
Back to top |
|
|
HIWD -
Joined: 13 Apr 2004 Posts: 142 Location: Dublin, Ireland
|
Posted: Mon May 09, 2005 11:08 pm Post subject: |
|
|
I use a program called Forms to Go to create my email forms. You can download it for free from www.bebosoft.com. :)
Regards,
HIWD. |
|
Back to top |
|
|
wspollack -
Joined: 28 Dec 2003 Posts: 108
|
Posted: Wed May 11, 2005 5:31 pm Post subject: I've been using CGIMail>>> |
|
|
I've been using CGIMail from NetWin for more than a year; no problems, and it doesn't require the installation of any scripting language.
See:
http://netwinsite.com/cgimail/
Regards,
Bill |
|
Back to top |
|
|
jbcproductions -
Joined: 17 Aug 2005 Posts: 1
|
Posted: Wed Aug 17, 2005 9:41 pm Post subject: great php sendform script |
|
|
i have a great php sendform script email me at jon@jbcproductions.com and i will give u all the details!!! |
|
Back to top |
|
|
richardyork -
Joined: 22 Jun 2004 Posts: 410 Location: United Kingdom
|
Posted: Wed Aug 17, 2005 9:55 pm Post subject: |
|
|
Here is a PHP form:
Code: | <?php
/* Edit this section */
$to = "user@domain.com"; // E-mail address the feedback is to be sent to
$subject = "Domain.ext Feedback"; // Subject of the e-mail that the feedback will be in
$afterpg = "page.htm"; // Page to be linked to after feedback is submitted (e.g. index.htm)
/* DO NOT EDIT BELOW THIS LINE (Unless you know what you are doing) */
error_reporting(1);
# Compliance check
if($to == "user@domain.com") {
print "Please ensure that you have editted this file, as it told you to!";
exit;
}
# Mail the result
if(isset($submit) && ($email) && ($message)) {
if (eregi("^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) {
print "<br><center><font face='Verdana' size='3'><b>Success! Your feedback was sent successfully - Thank-you.</b><br>Click <a href='".$afterpg."'>here</a> to continue...</font><br><br></center>";
mail($to, $subject, "$message
IP: $REMOTE_ADDR", "From: $email") or print "ERROR: Mail was not sent";
}
}
?>
<p align="center"><font size="4" face="Verdana"><strong>Feedback</strong></font></p>
<form method="post" action="<?=$PHP_SELF;?>">
<font face="Verdana" size="1">Your e-mail address:</font><br>
<input type="text" size="20" maxlength="72" name="email" value="<?=$email;?>"><?if(isset($submit) && (!$email)) {echo " <font face='Verdana' size='1' color='#FF0000'><b>Enter your e-mail address</b></font>";} elseif (isset($submit) && !eregi("^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) {echo " <font face='Verdana' size='1' color='#FF0000'><b>Enter a valid e-mail address</b></font>";}?><br><br>
<font face="Verdana" size="1">Your message:</font><br>
<textarea name="message" rows="6" cols="40"><?=$message;?></textarea><?if(isset($submit) && (!$message)) {echo " <font face='Verdana' size='1' color='#FF0000'><b>Enter your message</b></font>";}?><br>
<p><input type="submit" name="submit" value="Send"></p>
</form>
|
Just edit where it says to edit and save as filename.php!
More Info: http://aprelium.com/forum/viewtopic.php?t=6423
I know this is PHP but it is a brilliant script!!! _________________ Please SEARCH the forums BEFORE asking questions! |
|
Back to top |
|
|
|