pollardhimself
03-03-2009, 09:27 PM
I need a php emailer set up I was going to make a flash forum and email it with a php script but im not quite sure how to go about it. If its too hard to do it that way I can just use the below that i grabbed from trapped 17 but im unsure of how it works and how does It know the password of the email account its using to send me the email? Im looking for the simplest way possible to do this, Ive already spent enough time getting acquainted with flash
config.php file
CODE
<?php
$email="admin@fascript.com";
// Type Your email address here
$thxemial="Thank Your for Sending Email to Us";
//Your thanks Note
?>
mail.php file
CODE
<?php
include ("config.php");
$sub = $_POST['sub'];
$text = $_POST['text'];
$memail = $_POST['memail'];
mail($email, $sub, $text ,"From: $memail \nReply-To: $memail");
mail($memail, $sub, $thxemial,"From: $email \nReply-To: $email");
?>
Send.htm file
CODE
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Your Email Address</title>
</head>
<body>
<form method="POST" name="mail" action="mail.php">
<p><font face="Verdana" style="font-size: 8pt">Your Email Address </font></p>
<p><input type="text" name="memail" size="20"></p>
<p><font face="Verdana"><span style="font-size: 8pt">Your Mail Subject</span></font></p>
<p><input type="text" name="sub" size="20"></p>
<p><font face="Verdana" style="font-size: 8pt">Your Mail Body</font></p>
<p><textarea rows="2" name="text" cols="20"></textarea></p>
<p><input type="submit" value="Send Email" name="Submit"></p>
</form>
</body>
</html>
config.php file
CODE
<?php
$email="admin@fascript.com";
// Type Your email address here
$thxemial="Thank Your for Sending Email to Us";
//Your thanks Note
?>
mail.php file
CODE
<?php
include ("config.php");
$sub = $_POST['sub'];
$text = $_POST['text'];
$memail = $_POST['memail'];
mail($email, $sub, $text ,"From: $memail \nReply-To: $memail");
mail($memail, $sub, $thxemial,"From: $email \nReply-To: $email");
?>
Send.htm file
CODE
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Your Email Address</title>
</head>
<body>
<form method="POST" name="mail" action="mail.php">
<p><font face="Verdana" style="font-size: 8pt">Your Email Address </font></p>
<p><input type="text" name="memail" size="20"></p>
<p><font face="Verdana"><span style="font-size: 8pt">Your Mail Subject</span></font></p>
<p><input type="text" name="sub" size="20"></p>
<p><font face="Verdana" style="font-size: 8pt">Your Mail Body</font></p>
<p><textarea rows="2" name="text" cols="20"></textarea></p>
<p><input type="submit" value="Send Email" name="Submit"></p>
</form>
</body>
</html>