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:
Did you know?Explore Trending and Topic pages for more stories like this.
$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
Generate multilayered array from string.
ok so i have a string that looks like this:
Code: blog:edit_all,delete_all|users:edit_all,delete_
Need Help with a query
Hello,
For some reason I am just not getting the right answer when I do this query and not quite
AutoChoosing a CSS file based on URL
Hey everyone,
I have a site that has multiple URLs and CSS files.
Based on the URL tha
understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";
function get_nam
Procedure with variable number of columns
Hi, I have a procedure that looks like this:
PROCEDURE PROC(p_cursor OUT sys_refcurso
animation progress while uploading files?
Hello, i have some website form to upload few files to server. i want to put some gif animation whi
help, header() is not working!
Hello, I have this code:
<?php
/**
* @author samoi
* @copyright 200
PHP Upload issue
Hi guys,
I have stumble across an interesting issue with my script and is doing my head in.
PHP arrays into arrays need help
Hello
I am trying to highlight the days on my calendar based on the dates that i have in my datab
Reditecting pages based on logic
Newbie here, apologies in advance!
I am trying to use the header function to forward one of a