Listen, i need a PHP Form to e-mail script, do you guys have any script like that in PHP or other langauges maybe, but i want a good one ok.I'm giving out a free 5 mb e-mail accout for my site http://www.snogy.com , so i wanna make an Email Registration page http://www.snogy.com/email.php probably, so i need something like the UGN Security Admin Application and all the submissions will be sent to my email.

I want a PHP script possiable, you guys have any suggestions or anything ?

You said other languages. I do this all the time using Perl. I use CGI, strict, Apache::Constants qw(:common), and the most important one. Net::SMTP. Net::SMTP makes it really simple. A brain dead chipmunk on crack could figure out Net::SMTP in under half an hour. If you are on a *NIX system just type man Net::SMTP. It'll give you more information then you ever wanted. If you want examples of them though, I suppose I could show you some of the stuff I've done.

You don't have to do that step if you don't want to. I'll explain a bit on how to avoid it shortly though. Ok lets see. The next thing you are going to need is the CGI. This is a short version of what my CGI looks like.

Code:

package MailFormHandler;
$| = 1;
use strict; #using strict. I never code without it.
use CGI; #I use CGI so I can automatically parse forms.
use Apache::Constants qw(:common); #Because it's sexy.
use Net::SMTP; #Do I really have to explain?
sub handler() { # This handler is required for using mod_perl.
my $obj = new CGI; # Defining my CGI.
my $mailhost = "funeralplan.com"; #The Mail Host
my $recipient = $obj->param("recipient"); # Who is getting the email?
my $subject = $obj->param("subject"); #The subject of the email. If the email doesn't have a subject entered, set the default to MailFormHandler email
if (!$subject) {
$subject = "MailFormHandler email";
}
my $sender = "[email protected]"; #Do I have to explain everything to you now?
my $returnpage = $obj->param("returnpage"); #The return page is the page you are going to want the person to go to after they have submitted the form. You can make them go to any page you want. The information is kept in the form. We will get to that.
my $emailaddress = $obj->param("email"); # The persons email address that they entered into the form.
my $smtp = new Net::SMTP($mailhost); #Activating the SMTP module.
$smtp->mail($sender); #Setting the sender.
$smtp->to($recipient); #Setting the recipient
$smtp->data(); #Specifying that we want to start putting in some data. Next three lines are self-explanatory.
$smtp->datasend("To: " . $recipient . "\n");
$smtp->datasend("From: " . $sender . "\n");
$smtp->datasend("Subject: " . $subject . "\n\n");
#This next block is going to run through all the parameters that were in the field and put them in the email.
my ($name, $val);
foreach $name ($obj->param()) {
if (($name !~ /\.x$/) and ($name !~ /\.y$/)) {
foreach $val ($obj->param($name)) {
$smtp->datasend($name . ": " . $obj->param($name) . "\n");
}
}
}
$smtp->dataend();
$smtp->quit;
print $obj->redirect($returnpage);
return OK;
}
1;