Mail Delivery Failure

Hi,

Any mails i am sending with invoice plane is being rejected by the server & not being delivered. I am using a custom theme for the quote & the email bounce message is below.

A message that you sent was rejected by the local scanning code that
checks incoming messages on this system. The following error was given:

This message was classified as SPAM and may not be delivered (spam report:
HTML_MESSAGE=0.001, MIME_HTML_ONLY=1.105, NO_RELAYS=-0.001,
T_OBFU_PDF_ATTACH=0.01, URIBL_DBL_ABUSE_REDIR=7, CMAE Analysis:
v=2.1 cv=IoyyCuLg c=1 sm=0 tr=0 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10
a=ZZnuYtJkoWoA:10 a=EC19rq4goDIA:10 a=wUQvQvOEmiQA:10 a=t1swIRUZXqAA:10
a=BvJ3tXQt7gMA:10 a=QyrjfugCAAAA:20 a=Hz4apj2mgg2ZV08rJnkA:9
a=DdIAmWHcmX4OFTE2:21 a=uBt2DKuFrNUcQsxv:21 a=Sk7o8TahUizDGs0k:21
a=XhuAd537dnkA:10 a=p403mkujtbAA:10 a=w8AoChtCe4QA:10 a=FkkvKi_QSicA:10
a=-FEs8UIgK8oA:10 a=NWVoK91CQyQA:10 a=5kTIMQZ0L_7GeczCODMA:9
a=n3BslyFRqc0A:10). This would ususally be because of ill-formatted mails.
Please refer to http://wiki.apache.org/spamassassin/Rules/ for details
regarding the rules matched and how to fix them.

Also the code for the custom email is this

<style>/* ------------------------------------- 
  GLOBAL 
------------------------------------- */
* { 
 margin:0;
 padding:0;
}
* { font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; }

img { 
 max-width: 100%; 
}
.collapse {
 margin:0;
 padding:0;
}
body {
 -webkit-font-smoothing:antialiased; 
 -webkit-text-size-adjust:none; 
 width: 100%!important; 
 height: 100%;
}


/* ------------------------------------- 
  ELEMENTS 
------------------------------------- */
a { color: #2BA6CB;}

.btn {
 text-decoration:none;
 color: #FFF;
 background-color: #666;
 padding:10px 16px;
 font-weight:bold;
 margin-right:10px;
 text-align:center;
 cursor:pointer;
 display: inline-block;
}

p.callout {
 padding:15px;
 background-color:#ECF8FF;
 margin-bottom: 15px;
}
.callout a {
 font-weight:bold;
 color: #2BA6CB;
}

table.social {
/*  padding:15px; */
 background-color: #ebebeb;
 
}
.social .soc-btn {
 padding: 3px 7px;
 font-size:12px;
 margin-bottom:10px;
 text-decoration:none;
 color: #FFF;font-weight:bold;
 display:block;
 text-align:center;
}
a.fb { background-color: #3B5998!important; }
a.tw { background-color: #1daced!important; }
a.gp { background-color: #DB4A39!important; }
a.ms { background-color: #000!important; }

.sidebar .soc-btn { 
 display:block;
 width:100%;
}

/* ------------------------------------- 
  HEADER 
------------------------------------- */
table.head-wrap { width: 100%;}

.header.container table td.logo { padding: 15px; }
.header.container table td.label { padding: 15px; padding-left:0px;}


/* ------------------------------------- 
  BODY 
------------------------------------- */
table.body-wrap { width: 100%;}


/* ------------------------------------- 
  FOOTER 
------------------------------------- */
table.footer-wrap { width: 100%; clear:both!important;
}
.footer-wrap .container td.content  p { border-top: 1px solid rgb(215,215,215); padding-top:15px;}
.footer-wrap .container td.content p {
 font-size:10px;
 font-weight: bold;
 
}


/* ------------------------------------- 
  TYPOGRAPHY 
------------------------------------- */
h1,h2,h3,h4,h5,h6 {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; line-height: 1.1; margin-bottom:15px; color:#000;
}
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { font-size: 60%; color: #6f6f6f; line-height: 0; text-transform: none; }

h1 { font-weight:200; font-size: 44px;}
h2 { font-weight:200; font-size: 37px;}
h3 { font-weight:500; font-size: 27px;}
h4 { font-weight:500; font-size: 23px;}
h5 { font-weight:900; font-size: 17px;}
h6 { font-weight:900; font-size: 14px; text-transform: uppercase; color:#444;}

.collapse { margin:0!important;}

p, ul { 
 margin-bottom: 10px; 
 font-weight: normal; 
 font-size:14px; 
 line-height:1.6;
}
p.lead { font-size:17px; }
p.last { margin-bottom:0px;}

ul li {
 margin-left:5px;
 list-style-position: inside;
}

/* ------------------------------------- 
  SIDEBAR 
------------------------------------- */
ul.sidebar {
 background:#ebebeb;
 display:block;
 list-style-type: none;
}
ul.sidebar li { display: block; margin:0;}
ul.sidebar li a {
 text-decoration:none;
 color: #666;
 padding:10px 16px;
/*  font-weight:bold; */
 margin-right:10px;
/*  text-align:center; */
 cursor:pointer;
 border-bottom: 1px solid #777777;
 border-top: 1px solid #FFFFFF;
 display:block;
 margin:0;
}
ul.sidebar li a.last { border-bottom-width:0px;}
ul.sidebar li a h1,ul.sidebar li a h2,ul.sidebar li a h3,ul.sidebar li a h4,ul.sidebar li a h5,ul.sidebar li a h6,ul.sidebar li a p { margin-bottom:0!important;}



/* --------------------------------------------------- 
  RESPONSIVENESS
  Nuke it from orbit. It's the only way to be sure. 
------------------------------------------------------ */

/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
 display:block!important;
 max-width:600px!important;
 margin:0 auto!important; /* makes it centered */
 clear:both!important;
}

/* This should also be a block element, so that it will fill 100% of the .container */
.content {
 padding:15px;
 max-width:600px;
 margin:0 auto;
 display:block; 
}

/* Let's make sure tables in the content area are 100% wide */
.content table { width: 100%; }


/* Odds and ends */
.column {
 width: 300px;
 float:left;
}
.column tr td { padding: 15px; }
.column-wrap { 
 padding:0!important; 
 margin:0 auto; 
 max-width:600px!important;
}
.column table { width:100%;}
.social .column {
 width: 280px;
 min-width: 279px;
 float:left;
}

/* Be sure to place a .clear element after each set of columns, just to be safe */
.clear { display: block; clear: both; }


/* ------------------------------------------- 
  PHONE
  For clients that support media queries.
  Nothing fancy. 
-------------------------------------------- */
@media only screen and (max-width: 600px) {
 
 a[class="btn"] { display:block!important; margin-bottom:10px!important; background-image:none!important; margin-right:0!important;}

 div[class="column"] { width: auto!important; float:none!important;}
 
 table.social div[class="column"] {
  width:auto!important;
 }

}</style>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html >
<head>
<!-- If you delete this tag, the sky will fall on your head -->
<meta name="viewport" content="width=device-width" />

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>eRescue Quote</title>

</head>
 
<body bgcolor="#FFFFFF">

<!-- HEADER -->
<table class="head-wrap" bgcolor="#5d7f9a">
 <tr>
  <td></td>
  <td class="header container">
   
    <div class="content">
     <table bgcolor="#5d7f9a">
     <tr>
      <td><img src="http://www.erescue.in/wp-content/uploads/2014/07/eRescue_New_Logo_Small_Email.png" /></td>
      <td align="right"><h3 class="collapse">Your Quotation</h3></td>
     </tr>
    </table>
    </div>
    
  </td>
  <td></td>
 </tr>
</table><!-- /HEADER -->


<!-- BODY -->
<table class="body-wrap">
 <tr>
  <td></td>
  <td class="container" bgcolor="#FFFFFF">

   <div class="content">
   <table>
    <tr>
     <td>
      
      <h3>Hello, {{{client_name}}}</h3>
      <p class="lead">Thank you for your business enquiry.</p>
      
      
      
      
      
      <h3>About eRescue.in <small>Who are we?</small></h3>
      <p>eRescue is East India's leading provider of specialised security hardware solutions. Our products include CCTV Systems, Time      Attendance, Fire Detection & Fighting, Access Control, Home Automation, Audio & Video Solutions, Conferencing, Retail Solutions, & a lot   more, all of which help customers <strong>improve productivity and profitability.</strong> Our product and solution experts have been serving both small   businesses and large enterprises <strong>since 2009.</strong></p><p>Get to know more About Us : <a href="http://bit.ly/1B1Pr1p">http://bit.ly/1B1Pr1p
      </a></p><br/>
          
      <h3>The Brands & Brochures <small>Give me the details?</small></h3>
      <p>Unlike other competitors in the market we always attach the product details along with our quotes, the name of the brands & the product   <strong>brochures are linked in the description</strong> of the items quoted.</p><br/>
      
      <h3>After Sales Service <small>Warranty?</small></h3>
      <p>Service is the core at eRescue. It fuels our products & we owe a lot of our success to our <strong>impeccable record in servicing clients.</strong> Go ahead & ask around you will find glowing recommendations from all of our clients.</p>
      <br/>   
      
      <h3>How to get started? <small>Lets seal the deal.</small></h3>
      <p><strong>We can get started if you send us your consent with the advance. For any assistance you can reach us via email or phone.</strong></p>
      
      <!-- Callout Panel -->
      <p class="callout"><strong>
       You can view the quote here : <a href="{{{quote_guest_url}}}">QUOTE</a> & we have also attached the same.</strong>
      </p><!-- /Callout Panel -->

   <p>Looking forward to hearing back from you.</p> 
   </p><br/>    
            
      <!-- social & contact -->
      <table class="social" width="100%">
       <tr>
        <td>
         
         <!--- column 1 -->
         <table align="left" class="column">
          <tr>
           <td align="center">   
            
            <h5 class="">Connect with Us:</h5>
            <p class=""><a href="https://www.facebook.com/eRescueghy" class="soc-btn fb">Facebook</a> <a href="https://twitter.com/eRescueghy" class="soc-btn tw">Twitter</a> <a href="https://plus.google.com/+eRescueGuwahati" class="soc-btn gp">Google+</a></p>
      
            
           </td>
          </tr>
         </table><!-- /column 1 --> 
         
         <!--- column 2 -->
         <table align="left" class="column">
          <tr>
           <td align="center">    
                   
            <h5 class="">Contact Info:</h5>          
            <p>Phone: <strong>361.246.666</strong><br/>
            Mobile: <strong>967.8070.770</strong><br/>
                Email: <strong><a href="mailto:store@eRescue.in">store@eRescue.in</a></strong><br/>
                Website: <strong><a href="http://www.eRescue.in">www.eRescue.in</a></strong></p>
                
           </td>
          </tr>
         </table><!-- /column 2 -->
         
         <span class="clear"></span> 
         
        </td>
       </tr>
      </table><!-- /social & contact -->
     
     
     </td>
    </tr>
   </table>
   </div>
         
  </td>
  <td></td>
 </tr>
</table><!-- /BODY -->

<!-- FOOTER -->
<table class="footer-wrap">
 <tr>
  <td></td>
  <td class="container">
   
    <!-- content -->
    <div class="content">
    <table>
    <tr>
     <td align="center">
      <p>
      <p>Meena Bhawan, 1st Floor, Above Apollo Clinic,<br/>
    Ulubari, G.S.Road, Guwahati , Assam - 781007</p> 
       <a href="http://www.erescue.in">| Our Website |</a>
      </p>
     </td>
    </tr>
   </table>
    </div><!-- /content -->
    
  </td>
  <td></td>
 </tr>
</table><!-- /FOOTER -->

</body>
</html>

This message was classified as SPAM

Please make sure that your mail servers are set up correctly and check them via Email Blacklist Check - IP Blacklist Check - See if your server is blacklisted

Hey,

Checked my HTML for errors & corrected them. Now the issue is when i am trying to use PHP Mail or sendmail functions i am getting this error “Could not instantiate mail function” & when trying to use SMTP i am being logged out of invoice plane.

Can you help me out.