Loading ...
Sorry, an error occurred while loading the content.

regarding HTML email

Expand Messages
  • Hari.R
    Dear experts, I am using this code for sending HTML email for my site I am receiving mail but getting as a encoded mail. Can you guide me regarding this ? Is
    Message 1 of 4 , May 7, 2007
    • 0 Attachment
      Dear experts,



      I am using this code for sending HTML email for my site

      I am receiving mail but getting as a encoded mail.

      Can you guide me regarding this ?

      Is there any problem in mime version.



      Thanks in advance,



      With regards

      R.Hari





      $HTML="<b><font color=gray face=arial size=2>Dear $strFirstName</b>

      <br>

      Thank you very much for visiting titanaviationco.com website.
      <br><br><br>Best Regards,<br><br>Titan Aviation Team

      <center>

      <table border=0 cellpadding=0 cellspacing=0 width=502>

      <tr>

      <td align=center width=403> 

      <div align=left>

      <table border=1 cellpadding=0 cellspacing=0 width=301 bgcolor='#FFFFCE'>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>Name</b></td>

      <td width=153>".$_POST["FirstName"]."</td>

      </tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>Organization</b></td>

      <td width=153>".$_POST["organisation"]."</td></tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>E-mail</b></td>

      <td width=153>".$_POST["Email"]."</td></tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>Telephone</b></td>

      <td width=153>".$_POST["telephone"]."</td>

      </tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>Fax No</b></td>

      <td width=153>".$_POST["fax"]."</td>

      </tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>Postal Address</b></td>

      <td width=153>".$_POST["streetaddress"]."</td></tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>Zip Code</b></td>

      <td width=153>".$_POST["zip_code"]."</td>

      </tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>City</b></td>

      <td width=153>".$_POST["city"]."</td>

      </tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>Country</b></td>

      <td width=153>".$_POST["country"]."</td>

      </tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>Leg 1</b></td>

      <td width=153></td></tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>From</b></td>

      <td width=153>".$_POST["leg1a"]."</td></tr>

      <tr>

      <td width=142 bgcolor='#CECFCE'><b>To</b></td>

      <td width=153>".$_POST["leg1b"]."</td></tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>Date</b></td><td
      width=153>".$_POST["leg1c"]."</td></tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>Time (GMT)</b></td>

      <td width=153>".$_POST["leg1d"]."</td></tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>Passengers</b></td>

      <td width=153>".$_POST["leg1e"]."</td>

      </tr><tr>

      <td width=142 bgcolor='#CECFCE'><b>Leg 2</b></td>

      <td width=153></td></tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>From</b></td>

      <td width=153>".$_POST["leg2a"]."</td></tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>To</b></td>

      <td width=153>".$_POST["leg2b"]."</td>

      </tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>Date</b></td>

      <td width=153>".$_POST["leg2c"]."</td></tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>Time (GMT)</b></td>

      <td width=153>".$_POST["leg2d"]."</td></tr>

      <tr><td width=142 bgcolor='#CECFCE'><b>Passengers</b></td>

      <td width=153>".$_POST["leg2e"]."</td></tr><tr>

      <td width=142 bgcolor='#CECFCE'><b>Aircraft Type</b></td>

      <td width=153>".$_POST["air-type"]."</td>

      </tr><tr>

      <td width=142 bgcolor='#CECFCE'><b>Comments</b></td>

      <td width=153>".$_POST["comments"]."</td></tr>

      </table>

      </div>

      </td>

      <td align=center width=94></td>

      </tr>

      </table>";

      $to =$_POST["Email"];

      $subject ='Visitor Info - Titan Aviation.com';

      $headers = "From: postmaster@... \r\n";

      $headers.="Reply-To: postmaster@... \r\n";

      $headers .="Cc: hari@...\r\n";

      $headers .= "MIME-Version: 1.0\r\n";

      $boundary = uniqid("HTMLDEMO");

      $headers .= "Content-Type: multipart/alternative; boundary =
      $boundary\r\n\r\n";

      $body .= "--$boundary\r\n";

      $body .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

      $body .= "Content-Transfer-Encoding: base64\r\n\r\n";

      $body .= chunk_split(base64_encode($HTML));

      $mail_sent=@mail($strEmail,$subject,$body,$headers);

      --------------------------------------------------------------------------------------------------------------------------------


      --
      With Regards
      R.Hari
      +919894917125


      [Non-text portions of this message have been removed]
    • From Anoop
      Dear Hari, Try by setting Content-Type:text/html. Please let me know if it works. $headers .= Content-Type: text/html; charset=iso-8859-1; boundary
      Message 2 of 4 , May 8, 2007
      • 0 Attachment
        Dear Hari,

        Try by setting Content-Type:text/html. Please let me know if it works.

        $headers .= "Content-Type: text/html; charset=iso-8859-1; boundary =$boundary\r\n\r\n";

        Regards,
        Anoop

        "Hari.R" <hariharan.83@...> wrote: Dear experts,

        I am using this code for sending HTML email for my site

        I am receiving mail but getting as a encoded mail.

        Can you guide me regarding this ?

        Is there any problem in mime version.

        Thanks in advance,

        With regards

        R.Hari

        $HTML="<b><font color=gray face=arial size=2>Dear $strFirstName</b>

        <br>

        Thank you very much for visiting titanaviationco.com website.
        <br><br><br>Best Regards,<br><br>Titan Aviation Team

        <center>

        <table border=0 cellpadding=0 cellspacing=0 width=502>

        <tr>

        <td align=center width=403> 

        <div align=left>

        <table border=1 cellpadding=0 cellspacing=0 width=301 bgcolor='#FFFFCE'>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>Name</b></td>

        <td width=153>".$_POST["FirstName"]."</td>

        </tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>Organization</b></td>

        <td width=153>".$_POST["organisation"]."</td></tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>E-mail</b></td>

        <td width=153>".$_POST["Email"]."</td></tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>Telephone</b></td>

        <td width=153>".$_POST["telephone"]."</td>

        </tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>Fax No</b></td>

        <td width=153>".$_POST["fax"]."</td>

        </tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>Postal Address</b></td>

        <td width=153>".$_POST["streetaddress"]."</td></tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>Zip Code</b></td>

        <td width=153>".$_POST["zip_code"]."</td>

        </tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>City</b></td>

        <td width=153>".$_POST["city"]."</td>

        </tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>Country</b></td>

        <td width=153>".$_POST["country"]."</td>

        </tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>Leg 1</b></td>

        <td width=153></td></tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>From</b></td>

        <td width=153>".$_POST["leg1a"]."</td></tr>

        <tr>

        <td width=142 bgcolor='#CECFCE'><b>To</b></td>

        <td width=153>".$_POST["leg1b"]."</td></tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>Date</b></td><td
        width=153>".$_POST["leg1c"]."</td></tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>Time (GMT)</b></td>

        <td width=153>".$_POST["leg1d"]."</td></tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>Passengers</b></td>

        <td width=153>".$_POST["leg1e"]."</td>

        </tr><tr>

        <td width=142 bgcolor='#CECFCE'><b>Leg 2</b></td>

        <td width=153></td></tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>From</b></td>

        <td width=153>".$_POST["leg2a"]."</td></tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>To</b></td>

        <td width=153>".$_POST["leg2b"]."</td>

        </tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>Date</b></td>

        <td width=153>".$_POST["leg2c"]."</td></tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>Time (GMT)</b></td>

        <td width=153>".$_POST["leg2d"]."</td></tr>

        <tr><td width=142 bgcolor='#CECFCE'><b>Passengers</b></td>

        <td width=153>".$_POST["leg2e"]."</td></tr><tr>

        <td width=142 bgcolor='#CECFCE'><b>Aircraft Type</b></td>

        <td width=153>".$_POST["air-type"]."</td>

        </tr><tr>

        <td width=142 bgcolor='#CECFCE'><b>Comments</b></td>

        <td width=153>".$_POST["comments"]."</td></tr>

        </table>

        </div>

        </td>

        <td align=center width=94></td>

        </tr>

        </table>";

        $to =$_POST["Email"];

        $subject ='Visitor Info - Titan Aviation.com';

        $headers = "From: postmaster@... \r\n";

        $headers.="Reply-To: postmaster@... \r\n";

        $headers .="Cc: hari@...\r\n";

        $headers .= "MIME-Version: 1.0\r\n";

        $boundary = uniqid("HTMLDEMO");

        $headers .= "Content-Type: multipart/alternative; boundary =
        $boundary\r\n\r\n";

        $body .= "--$boundary\r\n";

        $body .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

        $body .= "Content-Transfer-Encoding: base64\r\n\r\n";

        $body .= chunk_split(base64_encode($HTML));

        $mail_sent=@mail($strEmail,$subject,$body,$headers);

        ----------------------------------------------------------

        --
        With Regards
        R.Hari
        +919894917125

        [Non-text portions of this message have been removed]






        ---------------------------------
        Office firewalls, cyber cafes, college labs, don't allow you to download CHAT? Here's a solution!

        [Non-text portions of this message have been removed]
      • Mahabaleshwar
        Dear Hari, try replacing $body .= Content-Transfer-Encoding: base64 r n r n ; with $body .= Content-Transfer-Encoding: 7bit n n ; and $body .=
        Message 3 of 4 , May 8, 2007
        • 0 Attachment
          Dear Hari,

          try replacing

          $body .= "Content-Transfer-Encoding: base64\r\n\r\n";
          with
          $body .= "Content-Transfer-Encoding: 7bit\n\n";

          and

          $body .= chunk_split(base64_encode($HTML)); -- You are encoding here,
          which is not required
          with
          $body .= $HTML;

          In mail() function 'To' should be $to not $strEmail, according to ur code

          regards,
          Bhat

          --- In bang-phpug@yahoogroups.com, Hari.R <hariharan.83@...> wrote:
          >
          > Dear experts,
          >
          >
          >
          > I am using this code for sending HTML email for my site
          >
          > I am receiving mail but getting as a encoded mail.
          >
          > Can you guide me regarding this ?
          >
          > Is there any problem in mime version.
          >
          >
          >
          > Thanks in advance,
          >
          >
          >
          > With regards
          >
          > R.Hari
          >
          >
          >
          >
          >
          > $HTML="<b><font color=gray face=arial size=2>Dear $strFirstName</b>
          >
          > <br>
          >
          > Thank you very much for visiting titanaviationco.com website.
          > <br><br><br>Best Regards,<br><br>Titan Aviation Team
          >
          > <center>
          >
          > <table border=0 cellpadding=0 cellspacing=0 width=502>
          >
          > <tr>
          >
          > <td align=center width=403> 
          >
          > <div align=left>
          >
          > <table border=1 cellpadding=0 cellspacing=0 width=301 bgcolor='#FFFFCE'>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Name</b></td>
          >
          > <td width=153>".$_POST["FirstName"]."</td>
          >
          > </tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Organization</b></td>
          >
          > <td width=153>".$_POST["organisation"]."</td></tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>E-mail</b></td>
          >
          > <td width=153>".$_POST["Email"]."</td></tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Telephone</b></td>
          >
          > <td width=153>".$_POST["telephone"]."</td>
          >
          > </tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Fax No</b></td>
          >
          > <td width=153>".$_POST["fax"]."</td>
          >
          > </tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Postal Address</b></td>
          >
          > <td width=153>".$_POST["streetaddress"]."</td></tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Zip Code</b></td>
          >
          > <td width=153>".$_POST["zip_code"]."</td>
          >
          > </tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>City</b></td>
          >
          > <td width=153>".$_POST["city"]."</td>
          >
          > </tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Country</b></td>
          >
          > <td width=153>".$_POST["country"]."</td>
          >
          > </tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Leg 1</b></td>
          >
          > <td width=153></td></tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>From</b></td>
          >
          > <td width=153>".$_POST["leg1a"]."</td></tr>
          >
          > <tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>To</b></td>
          >
          > <td width=153>".$_POST["leg1b"]."</td></tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>Date</b></td><td
          > width=153>".$_POST["leg1c"]."</td></tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>Time (GMT)</b></td>
          >
          > <td width=153>".$_POST["leg1d"]."</td></tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>Passengers</b></td>
          >
          > <td width=153>".$_POST["leg1e"]."</td>
          >
          > </tr><tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Leg 2</b></td>
          >
          > <td width=153></td></tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>From</b></td>
          >
          > <td width=153>".$_POST["leg2a"]."</td></tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>To</b></td>
          >
          > <td width=153>".$_POST["leg2b"]."</td>
          >
          > </tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>Date</b></td>
          >
          > <td width=153>".$_POST["leg2c"]."</td></tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>Time (GMT)</b></td>
          >
          > <td width=153>".$_POST["leg2d"]."</td></tr>
          >
          > <tr><td width=142 bgcolor='#CECFCE'><b>Passengers</b></td>
          >
          > <td width=153>".$_POST["leg2e"]."</td></tr><tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Aircraft Type</b></td>
          >
          > <td width=153>".$_POST["air-type"]."</td>
          >
          > </tr><tr>
          >
          > <td width=142 bgcolor='#CECFCE'><b>Comments</b></td>
          >
          > <td width=153>".$_POST["comments"]."</td></tr>
          >
          > </table>
          >
          > </div>
          >
          > </td>
          >
          > <td align=center width=94></td>
          >
          > </tr>
          >
          > </table>";
          >
          > $to =$_POST["Email"];
          >
          > $subject ='Visitor Info - Titan Aviation.com';
          >
          > $headers = "From: postmaster@... \r\n";
          >
          > $headers.="Reply-To: postmaster@... \r\n";
          >
          > $headers .="Cc: hari@...\r\n";
          >
          > $headers .= "MIME-Version: 1.0\r\n";
          >
          > $boundary = uniqid("HTMLDEMO");
          >
          > $headers .= "Content-Type: multipart/alternative; boundary =
          > $boundary\r\n\r\n";
          >
          > $body .= "--$boundary\r\n";
          >
          > $body .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
          >
          > $body .= "Content-Transfer-Encoding: base64\r\n\r\n";
          >
          > $body .= chunk_split(base64_encode($HTML));
          >
          > $mail_sent=@mail($strEmail,$subject,$body,$headers);
          >
          >
          --------------------------------------------------------------------------------------------------------------------------------
          >
          >
          > --
          > With Regards
          > R.Hari
          > +919894917125
          >
          >
          > [Non-text portions of this message have been removed]
          >
        • Mahabaleshwar
          Dear Hari, Try replacing $body .= Content-Transfer-Encoding: base64 r n r n ; with $body .= Content-Transfer-Encoding: 7bit r n r n ; and $body .=
          Message 4 of 4 , May 9, 2007
          • 0 Attachment
            Dear Hari,

            Try replacing
            $body .= "Content-Transfer-Encoding: base64\r\n\r\n";
            with
            $body .= "Content-Transfer-Encoding: 7bit\r\n\r\n";

            and

            $body .= chunk_split(base64_encode($HTML)); -- u r encoding here,
            which is not required.
            with
            $body .= $HTML;

            In mail() function 'To' should be $to not $strEmail, according to ur code

            regards,
            Bhat

            --- In bang-phpug@yahoogroups.com, Hari.R <hariharan.83@...> wrote:
            >
            > Dear experts,
            >
            >
            >
            > I am using this code for sending HTML email for my site
            >
            > I am receiving mail but getting as a encoded mail.
            >
            > Can you guide me regarding this ?
            >
            > Is there any problem in mime version.
            >
            >
            >
            > Thanks in advance,
            >
            >
            >
            > With regards
            >
            > R.Hari
            >
            >
            >
            >
            >
            > $HTML="<b><font color=gray face=arial size=2>Dear $strFirstName</b>
            >
            > <br>
            >
            > Thank you very much for visiting titanaviationco.com website.
            > <br><br><br>Best Regards,<br><br>Titan Aviation Team
            >
            > <center>
            >
            > <table border=0 cellpadding=0 cellspacing=0 width=502>
            >
            > <tr>
            >
            > <td align=center width=403> 
            >
            > <div align=left>
            >
            > <table border=1 cellpadding=0 cellspacing=0 width=301 bgcolor='#FFFFCE'>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Name</b></td>
            >
            > <td width=153>".$_POST["FirstName"]."</td>
            >
            > </tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Organization</b></td>
            >
            > <td width=153>".$_POST["organisation"]."</td></tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>E-mail</b></td>
            >
            > <td width=153>".$_POST["Email"]."</td></tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Telephone</b></td>
            >
            > <td width=153>".$_POST["telephone"]."</td>
            >
            > </tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Fax No</b></td>
            >
            > <td width=153>".$_POST["fax"]."</td>
            >
            > </tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Postal Address</b></td>
            >
            > <td width=153>".$_POST["streetaddress"]."</td></tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Zip Code</b></td>
            >
            > <td width=153>".$_POST["zip_code"]."</td>
            >
            > </tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>City</b></td>
            >
            > <td width=153>".$_POST["city"]."</td>
            >
            > </tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Country</b></td>
            >
            > <td width=153>".$_POST["country"]."</td>
            >
            > </tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Leg 1</b></td>
            >
            > <td width=153></td></tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>From</b></td>
            >
            > <td width=153>".$_POST["leg1a"]."</td></tr>
            >
            > <tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>To</b></td>
            >
            > <td width=153>".$_POST["leg1b"]."</td></tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>Date</b></td><td
            > width=153>".$_POST["leg1c"]."</td></tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>Time (GMT)</b></td>
            >
            > <td width=153>".$_POST["leg1d"]."</td></tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>Passengers</b></td>
            >
            > <td width=153>".$_POST["leg1e"]."</td>
            >
            > </tr><tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Leg 2</b></td>
            >
            > <td width=153></td></tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>From</b></td>
            >
            > <td width=153>".$_POST["leg2a"]."</td></tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>To</b></td>
            >
            > <td width=153>".$_POST["leg2b"]."</td>
            >
            > </tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>Date</b></td>
            >
            > <td width=153>".$_POST["leg2c"]."</td></tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>Time (GMT)</b></td>
            >
            > <td width=153>".$_POST["leg2d"]."</td></tr>
            >
            > <tr><td width=142 bgcolor='#CECFCE'><b>Passengers</b></td>
            >
            > <td width=153>".$_POST["leg2e"]."</td></tr><tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Aircraft Type</b></td>
            >
            > <td width=153>".$_POST["air-type"]."</td>
            >
            > </tr><tr>
            >
            > <td width=142 bgcolor='#CECFCE'><b>Comments</b></td>
            >
            > <td width=153>".$_POST["comments"]."</td></tr>
            >
            > </table>
            >
            > </div>
            >
            > </td>
            >
            > <td align=center width=94></td>
            >
            > </tr>
            >
            > </table>";
            >
            > $to =$_POST["Email"];
            >
            > $subject ='Visitor Info - Titan Aviation.com';
            >
            > $headers = "From: postmaster@... \r\n";
            >
            > $headers.="Reply-To: postmaster@... \r\n";
            >
            > $headers .="Cc: hari@...\r\n";
            >
            > $headers .= "MIME-Version: 1.0\r\n";
            >
            > $boundary = uniqid("HTMLDEMO");
            >
            > $headers .= "Content-Type: multipart/alternative; boundary =
            > $boundary\r\n\r\n";
            >
            > $body .= "--$boundary\r\n";
            >
            > $body .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
            >
            > $body .= "Content-Transfer-Encoding: base64\r\n\r\n";
            >
            > $body .= chunk_split(base64_encode($HTML));
            >
            > $mail_sent=@mail($strEmail,$subject,$body,$headers);
            >
            >
            --------------------------------------------------------------------------------------------------------------------------------
            >
            >
            > --
            > With Regards
            > R.Hari
            > +919894917125
            >
            >
            > [Non-text portions of this message have been removed]
            >
          Your message has been successfully submitted and would be delivered to recipients shortly.