Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 29th, 2006, 02:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default non-secure mail script

Hello

We've been warned by the company that hosts our website that we have a non secure mail script on our server and our domain will be taken down if we don't do something about it. Since I don't know much about php and it's a php script, I was wondering if someone could tell me how to make it secure - this is the script that is executed:

<?
$ToEmail = "[email protected]";

$ToName = "Our Company";
$ToSubject = "Web Site Enquiry Form";

$EmailBody = "Name: $name\nEmail: $email\nPhone Number: $telephone\nAddress: $address\nMessage: $message\n\n";

$EmailFooter="\n";

mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$name." <".$email.">");

header("Location: ok.htm");

?>

Much appreciated

Adam






Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure Download MunishBhatia ASP.NET 2.0 Professional 8 June 15th, 2007 09:16 AM
Writing a script for e-mail submission daivan Javascript How-To 1 March 21st, 2007 11:24 AM
Secure calvados Pro VB.NET 2002/2003 0 January 13th, 2005 08:40 AM
Secure Folders itHighway Classic ASP Basics 5 December 16th, 2004 05:12 PM
Secure FileManager yingmingming BOOK: ASP.NET Website Programming Problem-Design-Solution 0 February 16th, 2004 11:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.