i am using zend_mail as html to send an email confirmation to the server, for the 1st and the 2nd test the message was forwarded to inbox but then suddenly all messages where marked as spam. this is the php code:
$mails = '<div style = "background-color:#6BC6D3;">
<div style = "background-color: #FFFFFF;
margin: 33px auto auto;
width: 400px;
padding : 20px;
direction: rtl;
font: 15px tahoma">
www
<br />
<br />
Ĝ§testetstststtestxs
<br />
testetstststtestxsx
<br />
<br />
<a href="http://forid.ir/user/confirm/123109231109203912">http://forid.ir/user/confirm/123109231109203912</a>
</div>
</div>
';
$config = array('auth' => 'login',
'username' => '[email protected]',
'password' => '*******',);
$transport = new Zend_Mail_Transport_Smtp('mail.forid.ir', $config);
$mail = new Zend_Mail();
$mail->setBodyText('This is the text of the mail.');
$mail->setFrom('[email protected]', 'Some Sender');
$mail->addTo('[email protected]', 'Some Recipient');
$mail->setSubject('TestSubject');
$mail->setBodyHtml($mails,"utf8");
$mail->setBodyText($mails);
$mail->send($transport);
and this is my email in details
Delivered-To: [email protected] Received: by 10.100.120.8 with SMTP id s8csp160566anc; Sat, 19 May 2012 06:21:50 -0700 (PDT) Received: by 10.216.144.216 with SMTP id n66mr9808634wej.107.1337433710571; Sat, 19 May 2012 06:21:50 -0700 (PDT) Return-Path: Received: from server6g.axspace.com ([176.9.63.137]) by mx.google.com with ESMTPS id s62si1351562weh.54.2012.05.19.06.21.50 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 19 May 2012 06:21:50 -0700 (PDT) Received-SPF: pass (google.com: domain of [email protected] designates 176.9.63.137 as permitted sender) client-ip=176.9.63.137; Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 176.9.63.137 as permitted sender) [email protected] Message-Id: <[email protected]> Received: from server6g.axspace.com ([176.9.63.137] helo=localhost) by server6g.axspace.com with esmtpa (Exim 4.76) (envelope-from ) id 1SVjbp-0001po-S0 for [email protected]; Sat, 19 May 2012 15:22:13 +0200 From: Some Sender To: Some Recipient Subject: TestSubject Date: Sat, 19 May 2012 15:22:13 +0200 Content-Type: multipart/alternative; boundary="=_39a92918883006684b860d22bac01025" MIME-Version: 1.0
--=_39a92918883006684b860d22bac01025 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
i have no idea why it is marked as spam, and i have no idea how to fix it, i used to think using smtp mail would solve the spam problem but it didn't. :(