Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting within the email function

Status
Not open for further replies.

Haraldo

Programmer
Jun 9, 2003
41
GB
My trouble is and has been for a while since i've never taken the time to work it out is how to properly format an email response. Using a table below allows me to format it and this works however it leaves a great deal of white space above the sent information. Why does it leave this vast gap? How do i clear this white space?

Here is the most important part of the code:

$subject = 'Web Site Enquiry';
$mailContent = &quot;<table width =\&quot;100%\&quot; height=\&quot;100%\&quot;><tr><td width=\&quot;50%\&quot;><b>Business Name:</b> <i>$businessName</i></td><td width=\&quot;50%\&quot;><b>Home Name:</b> <i>$name</i></td></tr>
<tr><td><b>Business Address:</b> <br><i>$businessAddress</i></td><td><b>Home Address:</b> <br><i>$homeAddress</i></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td><b>Telephone:</b><i>$businessTelephone</i><br><b>Fax:</b><i>$businessFax</i></td><td><b>Telephone:</b><i>$homeTelephone</i><br><b>Fax:</b><i>$homeFax</i></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td><b>Mobile:</b> <br><i>$mobile</i></td><td><b>Email:</b> <br><i>$email</i></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td colspan=\&quot;2\&quot;><b>What is the finance for?</b> <br><i>$financeFor</i></td></tr>
<tr><td><br></td><td><br></td></tr>
<tr><td colspan=\&quot;2\&quot;><b>What is the type, amount and period for which finance is required?</b><br><i>$financeRequired</i></td></tr>
</table>&quot;;

mail($myemail, $subject, $mailContent, $header);


Thanks for any help,
H
 
and can i have the email id where it seems to be stretched?

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top