Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7957155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:12:24+00:00 2026-06-04T04:12:24+00:00

i am using zend_mail as html to send an email confirmation to the server,

  • 0

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' => 'info@forid.ir',
                '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('info@forid.ir', 'Some Sender');
$mail->addTo('sjhh.206@gmail.com', 'Some Recipient');
$mail->setSubject('TestSubject');
$mail->setBodyHtml($mails,"utf8");
$mail->setBodyText($mails);
$mail->send($transport);

and this is my email in details

Delivered-To: sjhh.206@gmail.com 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 info@forid.ir 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 info@forid.ir
designates 176.9.63.137 as permitted sender) smtp.mail=info@forid.ir
Message-Id:
<4fb79e6e.547ad80a.7d62.ffff8455SMTPIN_ADDED@mx.google.com> 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 sjhh.206@gmail.com; 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. 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:12:25+00:00Added an answer on June 4, 2026 at 4:12 am

    Like @David said, your spam rating has absolutely nothing to do with using Zend_Mail. Unless you’re willing to invest a lot of time and effort into configuring your mail servers for optimal delivery, I would highly recommend outsourcing your transactional email sends. ESPs like Sendgrid, Sailthru, and MailChimp will do the job way better than you can.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Zend_Mail to send an email of a log file, but it
I want to send a HTML email using ZEND_MAIL. The problem is that I
I'm using Zend_Mail and the following code to send my email messages. $mail =
Hi guys for some weird reason I'm unable to send email using zend mail
I am using Zend Dom component to parse some Html blocks, but i have
I am sending out emails from my website using Zend_Mail and Send Grid. I
Here's a scenario; I want to send email using PHP and Zend Framework. Here's
I'm using Zend_Mail in a Zend Framework application to send an e-mail with the
I want to send email using Zend Mail library. How I have to include
I'm using Zend's Zend_Mail_Storage_Pop3 to connect to mail server, open an email, and iterate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.