mail() problem
Posted on
16th Feb 2014 07:03 pm by
admin
Hi Guys,
I've set up a contact email form. It sends the information fine, but it sends it to the junk folder.
If I just use this command:
$headers = "MIME-Version: 1.0 n";
It will send it to my inbox folder. If I use any other command after it in the $headers variable it will then send it to my junk folder.
Here is the full code I'm using:
Code: $to = "notanotherperson@hotmail.com";
$subject = $title;
$message = "<html><body>";
$message .= "<div style='border: 1px #ccc solid; padding: 5px; width: 100%; text-align: center'>";
$message .= "<b>Message From ". $name ."</b></div><br />";
$message .= "<div style='border: 1px #ccc solid; padding: 10px'>";
$message .= "Dear Emma,<br /><br />";
$message .= "<span>".$mess."</span></div>";
$message .= "</body></html>";
$headers = 'MIME-Version: 1.0' . "n";
$headers .= "From: ".$name."<".$email.">n";
$headers .= "Reply-To: ".$name."<".$email.">n";
$headers .= "Return-Path: ".$name."<".$email.">n";
$headers .= "cc: ". $name . "<".$email.">n";
$headers .= "X-Mailer: Drupaln";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "n";
mail($to, $subject, $message, $headers);
Thanks
No comments posted yet
Your Answer:
Login to answer
232
15
Other forums
tag inside php... hi
Code: <?php echo "<td width="$columnWidth%" align=&help with contest script I would like to code a contest script to my site but i don't know how. Could someone just give me pu Please help with SMTP Authenticated PHP Email Form Hello, I'm creating a PHP email form, and for this particular server, I have to use SMTP Authenticat how to get IP address? hey guys,
i have this code which is supposed to get me the IP address of my site visitors:
Recognising Revenue daily Hello.
Has anyone come across daily recognition of deferred income?
We want to implement R whats wrong with my code please help!!! this is the error
Warning: mysql_close(): supplied argument is not a valid MySQL-Link res Syntax Help I'm trying to make a form that edits a php file which contains config settings. I'm using strings t please help me in this update statment hi every one
if I have table and this data in it
id name
10 preg_replace question Hello!!
I hope someone can help me with preg_replace.
I load two tables from an extern problems with php variables in mysql query i can't seem to get the following query to work.
select $q1c from $vote_rate where id = $re
|