Jump to content

[SOLVED] Mail Error | My mailfunction distorts data


ramli

Recommended Posts

Hello,

 

I want to send data using the mailfunction of php. this is de data and code

 

<table width='100%' cellpadding='0' cellspacing='0'>
  <tr>
    <td> #InvoiceIncomeName# <BR />
      #IncomeAdress# <BR />
      #IncomeZipcode# #IncomeLocation#<BR />
      <BR />
    </td>
    <td width='200' align='right'><table cellpadding='0' cellspacing='0'>
        <tr>
          <td> #CompanyName# #CompanyType#<BR />
            #CompanyAdress# <BR />
            #CompanyZipcode# #CompanyLocation#<BR />
            <BR />
          </td>
        </tr>
      </table></td>
  </tr>
</table>
<BR />
<BR />
<table width='100%' cellpadding='0' cellspacing='0'>
  <tr>
    <td> #LangInvoiceDate#: #InvoiceDate# </td>
    <td align='center'> #LangIncomeID#: #IncomeID# </td>
    <td align='right'> #LangID#: #InvoiceID# </td>
  </tr>
</table>
<BR />
<BR />
<table width='100%' cellpadding='0' cellspacing='0'>
  <tr>
    <td>#RuleRule#</td>
    <td>#RuleName#</td>
    <td>#RuleDescription#</td>
    <td>#RuleCostUnit#</td>
    <td>#RuleNumbers#</td>
    <td>#RuleTotal#</td>
  </tr>
  <!-- Start Border -->
  <tr>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
  </tr>
  <!-- End Border -->
  <tr height='10'>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <!-- Spacer -->
  #Rules#
  <tr height='10'>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <!-- Spacer -->
  <!-- Start Border -->
  <tr>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
    <td style='border-top: 1px black solid;'> </td>
  </tr>
  <!-- End Border -->
  <tr height='10'>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <!-- Spacer -->
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>#LangTax#</td>
    <td>#TotalTax#</td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td>#LangSubtotal#</td>
    <td>#TotalSum#</td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td style='border-top: 1px black solid;' >#LangTotal#</td>
    <td style='border-top: 1px black solid;'>#TotalTotal#</td>
  </tr>
</table>
<BR />
<BR />

 

The processor

 

$view = "MIME-Version: 1.0\r\n";
$view .= "Content-type: text/html; charset=iso-8859-1\r\n";
$view .= "From: $frommail";
$message = "$text";

echo($text);

mail($email, $subject, $message, $view); 

 

For some reson it edits my data to create small error like removing a tag from a td or

removing the p from px in the style. I cant think of a logical reson wy this is happening

maby u can help me. Any help is welcom. Thax in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.