Discussions
Activity
Sign In
Use this forum to help each other on the Freebies offered at luiszuno.com.
HTML files
Send Mail - Minor Problem
BigBadBill
November 2011
My sendmail.php seems to be missing a few lines of script. This is all I got.
//vars
$subject = $_POST['subject'];
$to = explode(',', $_POST['to'] );
$from = $_POST['email'];
//data
$msg = "NAME: " .$_POST['name'] ."
\n";
$msg .= "EMAIL: " .$_POST['email'] ."
\n";
$msg .= "WEBSITE: " .$_POST['web'] ."
\n";
$msg .= "COMMENTS: " .$_POST['comments'] ."
\n";
//Headers
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= "From: <".$from. ">" ;
//send for each mail
foreach($to as $mail){
mail($mail, $subject, $msg, $headers);
}
bensk1
November 2011
mine is below and it works fine, if this helps please tell me if you get the search box working because i would love to know how.
<?php<br />/**
* Author: Luis Zuno
* Email: luis@luiszuno.com
* URL:
http://www.luiszuno.com
* Version: 1.0.0
**/
//vars
$subject = $_POST['subject'];
$to = explode(',', $_POST['to'] );
$from = $_POST['email'];
//data
$msg = "NAME: " .$_POST['name'] ."
\n";
$msg .= "EMAIL: " .$_POST['email'] ."
\n";
$msg .= "COMMENTS: " .$_POST['comments'] ."
\n";
//Headers
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= "From: <".$from. ">" ;
//send for each mail
foreach($to as $mail){
mail($mail, $subject, $msg, $headers);
}
?>
BigBadBill
November 2011
How do you get mail if your email address isn't included? And, no, I haven't been able to get the search function working.
BigBadBill
November 2011
Okay, I was looking in the wrong place. Now that I found the email address options in the HTML file it works fine.
Add a Comment
Start a New Discussion
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
68
General
12
Wordpress
23
↳ Nova WordPress Theme
21
Flash files
5
PSD files
0
HTML files
28
↳ Folder Template
0
↳ Kroft HTML
0
↳ Modus HTML
0
↳ Muro HTML
0
↳ Nova HTML
3
↳ Resume HTML
0
↳ Shinra HTML
0
↳ Torn HTML
0
↳ Zeni HTML
0
Powered by Vanilla