Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

php FormtoEmail

Original Message
Name: Infamous01
Date: December 23, 2007 at 11:57:01 Pacific
Subject: php FormtoEmail
OS: na
CPU/Ram: na
Model/Manufacturer: na
Comment:
I have currently setup a php form. Once information is submitted, it should sent it to my email however it is not. Does this usually take a while? The code i used for the form is in this website.

http://formtoemail.com/FormToEmail.txt


There are no errors however its just not sending to my email. Any suggestions? Ive entered my email exactly where it said to.


Report Offensive Message For Removal


Response Number 1
Name: allam_rahmeh
Date: February 16, 2008 at 03:47:29 Pacific
Subject: php FormtoEmail
Reply: (edit)
Dear Infamous01:
Try the code below its working

<?

-------- co--------- //
// Your email to get the results.
$dest = "aaaaa@xxxxxx.cc";

// The sender address
$sender = "aaaaa@xxxxxx.cc";

// Address for undelivered emails
$undelivered = "aaaaa@xxxxxx.cc";

//Full path to your upload dir
$up_full = "http://www.xxxxxx.cc/dddd/";

//Relative path from this script (important)
$up_dir = "./upload/";

// Number of upload fields. Put 0 if you don't want any.
$UploadNum = "3";

//Host mail functions. Possible values are 0,1 or 2. See below:
// 0 is for most hosts (default value).
// 1 is for Online.Net (Online).
// 2 is for Nexenservices.com (Nexen).

$online_isp = "0";


if(isset($_REQUEST["submit"]))
{
ields Verification Pro- //
$Nada = '';
$From = $_REQUEST['From'];
$Msg = $_REQUEST['Msg'];

if(empty($From))
{
$Nada.="Email field is empty

";
}
if(empty($Msg))
{
$Nada.="Message field is empty ";
}
$noway = "$Nada" ;

if(empty($Nada) &&
eregi("^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$",$From))
{
$ok = 1;
}
elseif(!empty($Nada) &&
eregi("^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$",$From))
{
$ok = false;
}
else
{
$ml = "Your email address is invalid

";
$ok = false;
}
------------------ //

--- Mail Bui------ //
if($ok=="1")
{
$referer = $_SERVER["HTTP_REFERER"];
$sujet = "Feedback";
$body ="Origin: $referer\n";
$body.="\n***** Results *****\n\n";

if(count($_POST))
{
while(list($key, $val) = each($_POST))
{
$body.="$key : $val\n";
}
}

$body.="\n\n";
$body.="Upload: $uploaded\n";
$body.="$all_names\n";
$body.="$get_files\n";
$body.="*************************\n";

if($online_isp == "1")
{
if(!email("feedback",$dest,$sujet,$body))
{
print "An error occured during mail delivery
";
}
}
elseif ($online_isp == "2")
{
include "mail.inc";
if(!email($dest,$sujet,$body))
{
print "An error occured during mail delivery
";
}
}
else{
$headers = $sender;
if(!mail($dest,$sujet,$body, $headers, "-f $undelivered"))
{
print "An error occured during mail delivery
";
}
}
------------------ //

-- Success Mes---- //
?>
<html><head><title>Contact Me</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1256"><style type="text/css">

<table border="0" width="44%" align="center"><tr><td valign="top">
<table border="1" width="70%" bordercolor="#57581E" bordercolordark="#57581E" cols="1" align="center"><tr><td>
<form action="<?echo $_SERVER['PHP_SELF'] ?>" method="post" enctype="multipart/form-data">
<table border="0" bordercolor="#57581E" height="100" align="center"><tr>
<td height="5" width="218">
Email : </td><td height="5" width="249"><input type="text" size="30" maxlength="255" name="From" style="background-color: #ffffff;font: verdana; color: #57581E; border: 0px;" value=""></td></tr><tr><td height="5" width="218">
Name : </td><td height="5" width="249"><input type="text" size="30" name="Name" style="background-color: #ffffff;font: verdana; color: #57581E; border: 0px;" value=""></td></tr></table>
<p align="center">
Message :

<textarea name="Msg" cols="45" rows="7"></textarea>
</p>
<table width="90%" border="0" align="center"><tr align="center"><td> </td>

<input type="reset" name="reset" value=" Clear ">
<input type="submit" name="submit" value=" Send ">
</form>

</td></tr></table>
</td></tr></table>
</body>

</html>
<? } ?>

Allam Rahmeh
Latakia Syria


Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: php FormtoEmail

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




how to setup call of duty to joytok

WindowsME / HotMail Problem

Corrupt memory

Convert fat32 to Ntfs

Best WinMo phone of 2008


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC