-
1 Attachment(s)
[RESOLVED] send.php help
Im needing help here please
You see where it says Nobody <[email protected] and where it says No Subject well how do i get it so it shows the persons email address like showing in the email beside email address. Also for Subject id like it so say Order instead of No Subject
PHP Code:
<?PHP
$sendto = "[email protected]";
$from = "$email";
$message = "DVD Order List:
First Name: $firstname
Last Name: $lastname
Address Line One: $addressone
Address Line Two: $addresstwo
Post Code: $postcode
City: $city
Country: $country
Telephone Number: $telephone
Email Address: $email
--------------------------------------------------------------------------------------------
DVD List:
$dvd";
mail($sendto, $subject, $message);
echo "Thanks for the order we will contact you soon";
?>
-
Re: send.php help
are you kidding me? you don't even have a "$subject" variable defined, what did you think that variable did when you called it in the function? make $subject equal to "order."
and your email's message already displays the person's email correctly. whatever $email is set to will be displayed there, and in your case it was set to kjkj. you should be sending mail headers, though. look up the mail() function on php.net. since you're not specifying a from header, your emails are coming from an anonymous account on your host's server.
i find it a little hard to even try helping people who show no effort of their own to make something work :/.