Is there a Formmail type app on CPanel, or any recommendations?

frankfriend

Member
Messages
410
Reaction score
2
Points
18
Is there a Formmail type of app on Cpanel [yes I have looked!] or can anyone recommend one?
The app allows you to create a Form to be filled in, either simple, or complex with boxes, then when yoiu submit it, you must type in a randomly generated code to prvent spamming by machine, finally it distributes copies by email to a list of designated receivers.

Many thanks
:drool:;)
 

tittat

Active Member
Messages
2,478
Reaction score
1
Points
38
phpFormGenerator
A form generator featuring up to 100 form fields, all kind of input fields incl. file upload, customizable fields attributes, send submitted data to an email address or store them in a database, admin panel.


To install it. Go to your cpanel>>Fantastico>>phpFormGenerator >>Install
 

frankfriend

Member
Messages
410
Reaction score
2
Points
18
Thank you both, I'll start by trying out phpForm Generator, but i must find out about Joomla.
 

freecrm

New Member
Messages
629
Reaction score
0
Points
0
Why not code your own - its nice and simple..

PHP:
<form action="" method="post">
		<table>
			<tr>
				<td><div align="right">From:</div></td>
			    <td><input name="fromemail" id="fromemail" size="35" /></td>
			</tr>
			<tr>
				<td><div align="right">To:</div></td>
				<td><input name="toemail" type="text" id="toemail" size="35" /></td>
			</tr>
			<tr>
				<td><div align="right">Subject:</div></td>
				<td><input name="subject" type="text" id="subject" size="35" /></td>
			</tr>
			<tr>
				<td><div align="right">Message:</div></td>
				<td><textarea name="msg" id="msg" cols="50" rows="10"></textarea></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input id="Submit" type="submit" value="Send" /></td>
			</tr>
						
		</table>
  </form>
	
	<?php

if($_POST['fromname'] <> NULL && $_POST['fromemail'] <> NULL && $_POST['toemail'] <> NULL && $_POST['subject'] <> NULL && $_POST['msg'] <> NULL) {

	$fromemail = stripslashes($_POST['fromemail']);
	$toemail = stripslashes($_POST['toemail']);
	$headers  = 'MIME-Version: 1.0' . "\n";
	$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";
	$headers .= "Content-Transfer-Encoding: 7bit\n"; 
	$headers .= 'From: Fromname <'.$fromemail.'>' . "\n";
	$headers .= 'Reply-To: '.$fromemail."\n";
	$headers .= 'X-Mailers: PHP /'.phpversion() . "\n";
	$subject = $_POST['subject'];
	$message = $_POST['msg'];

	
	
	if (@mail($toemail,stripslashes($subject),stripslashes($message),stripslashes($headers)))
	{
		echo ('<p>Your message has been sent.</p>');
	}
	else
	{
		echo ('<p>Your message has failed to send.</p>');
	}
	

} else {

echo "<p>Please fill out the form completely</p>";

}?>

You might need to adjust some of the values but this is the basic structure
 
Last edited:
Top