stealthmode666
01-03-2009, 10:00 PM
I have a processing script that takes form fields and inserts them into a formatted table which is the outcome of the email.
The script runs then seems to just give up processing and sends the form data as setout in my script but only up to a point.
I can't understand why a script would only process up to a certain line everytime then send the data regardless.
<?php
$body = 'Robert. You have received these contact details .com:<br /><br />'.
'<table align="left", border="1px">'.
'<tr>'.
'<td width="200px">Member Name</td><td width="200px"> '.$_POST['Member_Name']. '</td><td width="200px"></td><td width="200px"></td>'.
'</tr><tr>'.
'<td>Members Contact Number</td><td> '.$_POST['telephone'].'</td>'.
'</tr><tr>'.
'<td>Members Email Address</td><td> '.$_POST['Email'].'</td>'.
'</tr><tr>'.
'<td>Loan Amount</td><td> '.$_POST['Loan_Amount'].'</td>'.
'</tr> <tr>'.
'<td> </td>'.
//applicant details
'</tr><tr>'.
'<th>Main Applicant</th><td> </td><th>Joint Applicant</th>'.
'</tr><tr>'.
'<td>Title</td><td> '.$_POST['title'].'</td><td>Title</td><td> '.$_POST['title1'].'</td>'.
'</tr><tr>'.
'<td>Surname</td><td> '.$_POST['surname']. '</td><td>Surname</td><td> '.$_POST['surname1']. '</td>'.
'</tr><tr>'.
'<td>Forname(s)</td><td> '.$_POST['forename']. '</td><td>Forename(s)</td><td> '.$_POST['forname1']. '</td>'.
'</tr><tr>'.
'<td>Residential Address</td><td> '.$_POST['residential']. '</td><td>Residential Address</td><td> '.$_POST['residential1']. '</td>'.
'</tr><tr>'.
'<td>Town</td><td> '.$_POST['town']. '</td><td>Town</td><td> '.$_POST['town1']. '</td>'.
'</tr><tr>'.
'<td>County</td><td> '.$_POST['county']. '</td><td>County</td><td> '.$_POST['county1']. '</td>'.
'</tr><tr>'.
'<td>Post Code</td><td> '.$_POST['postcode']. '</td><td>Post Code</td><td> '.$_POST['post1']. '</td>'.
'</tr></table>';
?>
If I use the close table tag above the line Post Code the email has all the data formatted in rows and columns. After this it just inserts half the next line in the email and sends it.
Is there a limit to what I can process and send as an html email?
The script runs then seems to just give up processing and sends the form data as setout in my script but only up to a point.
I can't understand why a script would only process up to a certain line everytime then send the data regardless.
<?php
$body = 'Robert. You have received these contact details .com:<br /><br />'.
'<table align="left", border="1px">'.
'<tr>'.
'<td width="200px">Member Name</td><td width="200px"> '.$_POST['Member_Name']. '</td><td width="200px"></td><td width="200px"></td>'.
'</tr><tr>'.
'<td>Members Contact Number</td><td> '.$_POST['telephone'].'</td>'.
'</tr><tr>'.
'<td>Members Email Address</td><td> '.$_POST['Email'].'</td>'.
'</tr><tr>'.
'<td>Loan Amount</td><td> '.$_POST['Loan_Amount'].'</td>'.
'</tr> <tr>'.
'<td> </td>'.
//applicant details
'</tr><tr>'.
'<th>Main Applicant</th><td> </td><th>Joint Applicant</th>'.
'</tr><tr>'.
'<td>Title</td><td> '.$_POST['title'].'</td><td>Title</td><td> '.$_POST['title1'].'</td>'.
'</tr><tr>'.
'<td>Surname</td><td> '.$_POST['surname']. '</td><td>Surname</td><td> '.$_POST['surname1']. '</td>'.
'</tr><tr>'.
'<td>Forname(s)</td><td> '.$_POST['forename']. '</td><td>Forename(s)</td><td> '.$_POST['forname1']. '</td>'.
'</tr><tr>'.
'<td>Residential Address</td><td> '.$_POST['residential']. '</td><td>Residential Address</td><td> '.$_POST['residential1']. '</td>'.
'</tr><tr>'.
'<td>Town</td><td> '.$_POST['town']. '</td><td>Town</td><td> '.$_POST['town1']. '</td>'.
'</tr><tr>'.
'<td>County</td><td> '.$_POST['county']. '</td><td>County</td><td> '.$_POST['county1']. '</td>'.
'</tr><tr>'.
'<td>Post Code</td><td> '.$_POST['postcode']. '</td><td>Post Code</td><td> '.$_POST['post1']. '</td>'.
'</tr></table>';
?>
If I use the close table tag above the line Post Code the email has all the data formatted in rows and columns. After this it just inserts half the next line in the email and sends it.
Is there a limit to what I can process and send as an html email?