Zubrag.com
March 25, 2019, 06:39:05 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Avoid being spam-filtered  (Read 5497 times)
zubrag
Administrator
Hero Member
*****
Posts: 788


WWW
« on: September 17, 2007, 10:54:08 AM »

In order to minimize chances of being spam-filtered always include following settings in email header:

From, Subject, Return-Path, Reply-To

Sample php code for populating these fields:
$headers .= "From: " . $email_name . " <" . $email_address . ">\r\n";
$headers .= 'Subject: ' . $email_subject . "\r\n";
$headers .= "Return-Path: " . $email_return_path . "\r\n";
$headers .= "Reply-To: " . $email_reply_to . "\r\n";
$headers .= "Content-type: text;\r\n";
$headers .= "Mime-Version: 1.0\r\n";

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC