Jump to content

script help with a mail script


zinctek

Recommended Posts

Hello all

 

i have just made a script ( my first 1 ) and its the following code

 

<?php
if(isset($_POST['submit'])) {

$to = "[email protected]"; 
$subject = "download client";
$name = $_POST['name'];
$email1 = $_POST['email1'];
$email2 = $_POST['email2'];
$telephonenumber = $_POST['telephonenumber'];
$hearaboutus = $_POST ['heardaboutus'];



foreach($_POST as $value) {
	$check_msg .= "Checked: $value\n";
}

$body = "
From: $name\n 
Email: $email1\n 
Email (check): $email2\n 
Telephone: $telephonenumber\n
Hear About Us: $heardaboutus\n

"

;

mail($to, $subject, $body);

}
header( 'Location: download1.html' );

 

now it redirects to download1.html but for some reason its not sending me the email could anyone help me and tell me why?

 

thank you

 

Link to comment
https://forums.phpfreaks.com/topic/73864-script-help-with-a-mail-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.