For the site tryvista.com I have created a form that is used to send emails out to clients. However gmail and the least marks the site as spam. The site is not blacklisted, however it is part of a shared hosting service. I have tried using php's mail function with following code: (with emails modified
$header = "To: ted <ted at tryvista.com>\r\n";
$header .= "Reply-To: Ted <ted at tryvista.com>\r\n";
$header .= "Return-Path: Ted <ted at tryvista.com>\r\n";
$header .= "From: Ted <ted at tryvista.com>\r\n";
$header .= "Organization: My Organization\r\n";
$header .= "From: ted at tryvista.com";
$header .= "\nMIME-Version: 1.0" .
$header .= "\nContent-type: text/html; charset=iso-8859-1";
$title = $_POST['title'];
$body = $_POST['body'];
$to = "to;
$smarty->assign('body', $body);
$message = $smarty->fetch("mail1.tpl");
//$res =mail($to, $title, $message, $header );
$res = mail($to, $title, $message, $header);
I have also tried using swift runing the basic email test which was also marked as spam.