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
search function
HI guys,
if anyone could point us in the right direction of how to do this, or provide some t
Multipe Dynamic Controls & AutoPostback Issue
I currently have a need to create many dynamic controls (Example Textboxes) that need to do a PostBa
Preg_match with an array
is there an away to use preg_match with an array?
i want to check a string with an array to s
IP question
ive got 2 ip addresses both global from same user how would i detect if they are local to each other
path to include folder
Hi everyone,
When I'm testing locally, I have to add the name of the site folder as part of t
How do I send data using an html link
Hi
If I have
<a href="main_file.php">
How do I send data t
How to add functionality to a simple php calender?
Hello everyone,
I have just finished creating a simple php calander. Can someone point
CODE NOT WORKING
Code: [Select]<?php
//include shared codes
include '../lib/common.php';
include
JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w
IF Statement & Two Tables With Different Echoes
I'm retrieving two tables in a single query using UNION ALL, like so:
Code: $query = "SE