EMAIL FORM DOES ANYONE HAVE ONE THAT WORKS?

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
cagozoe
-


Joined: 24 Apr 2005
Posts: 23

PostPosted: Thu Apr 28, 2005 7:17 pm    Post subject: EMAIL FORM DOES ANYONE HAVE ONE THAT WORKS? Reply with quote

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 View user's profile Send private message Visit poster's website
HIWD
-


Joined: 13 Apr 2004
Posts: 142
Location: Dublin, Ireland

PostPosted: Mon May 09, 2005 11:08 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
wspollack
-


Joined: 28 Dec 2003
Posts: 108

PostPosted: Wed May 11, 2005 5:31 pm    Post subject: I've been using CGIMail>>> Reply with quote

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 View user's profile Send private message Visit poster's website
jbcproductions
-


Joined: 17 Aug 2005
Posts: 1

PostPosted: Wed Aug 17, 2005 9:41 pm    Post subject: great php sendform script Reply with quote

i have a great php sendform script email me at jon@jbcproductions.com and i will give u all the details!!!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address
richardyork
-


Joined: 22 Jun 2004
Posts: 410
Location: United Kingdom

PostPosted: Wed Aug 17, 2005 9:55 pm    Post subject: Reply with quote

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 "&nbsp;<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 "&nbsp;<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 "&nbsp;<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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB phpBB Group