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 = "support@backupclick.com"; 
$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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.