Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

mail cuts the end off my HTML message!

the mail() function

Moderators: macek, egami, gesf

mail cuts the end off my HTML message!

Postby mattpont » Fri Oct 18, 2002 12:59 am

When I send an HTML message using the mail() function in php4, the end of my body text is sometimes cut off.

Here is the email code:
$sendto = $email;
$subject = "STL Property Search";
$message = "<html><BODY>" .
"Here are the details of your property search.<BR><BR>" .
"USER DETAILS<BR><HR>" .
"Contact Name: $ContactName<br>" .
"Reference: $ClientRef<br>" .
"Firm: $Firm<br>" .
"DX Number: $DXNo<br>" .
"Address: $Address<br>" .
"Town: $Town<br>" .
"County: $County<br>" .
"Postcode: $Postcode<br>" .
"Phone: $Phone<br>" .
"Fax: $Fax<br>" .
"<BR><BR>PROPERTY DETAILS<BR><HR>" .
"House Number / Name / Occupant: $House<br>" .
"Street: $Street<br>" .
"Area: $Area<br>" .
"Town: $Town<br>" .
"County: $County<br>" .
"Postcode: $Postcode<br>" .
"Purchaser: $Purchaser<br>" .
"Otherinfo: $Otherinfo<br>" .
"<BR><BR>COST BREAKDOWN<BR><HR>" .
"Coal Mining Search = &pound;$coal_search<br>" .
"Council= $personal_search<br>" .
"Council Fee= &pound;$EXprl<br>" .
"Next Day Personal Search= &pound;$official_fee<br>" .
"Environment Report= $environment1<br>" .
"Environment Fee= &pound;$environment_fee<br>" .
"Premium 4 Hour Environment Report= &pound;$enviro_prem<br>" .
"Drainage Fee<br>" .
"$drainage= &pound;$drainage_fee<br>" .
"Premium Drainage Search $drainage_prem<br>" .
"TOTAL FEE= &pound;$total_fee<br>" .
"<BR><BR>PAYMENT DETAILS<BR><HR>" .
"Payment Type: $paymenttype<br>" .
"Creditcard Number: $ccnumber<br>" .
"Creditcard Expiry Date: $ccexpiry<br>" .
"Creditcard Holder: $ccholder<br>" .
"Creditcard Registered Address: $ccaddress<br>" .
"<br>" .
"Thankyou for your business with Me." .
"</body></html>";

mail($sendto, $subject, $message, "Content-type: text/html; charset=iso-8859-1");


It then cuts the message off at the payment details part and doesn't show the rest of the message (ie. the rest of the payment details stuff and the thankyou message).
Does anyone know how to get round this problem or what it is caused by?
mattpont
New php-forum User
New php-forum User
 
Posts: 3
Joined: Fri Oct 18, 2002 12:52 am

Postby Jay » Fri Oct 18, 2002 1:18 am

Have a look at the resulting mail's header to see if it's all there. It might be your display software
Jay
 

Postby mattpont » Fri Oct 18, 2002 1:44 am

hmmm,

it cuts it off in Outlook Express 6.0, but views fine when I view the email via yahoo! email in an IE browser (the email was sent to my Yahoo! account).

Any idea why Outlook should display it differently? And any solutions to this problem?

Thanks.
mattpont
New php-forum User
New php-forum User
 
Posts: 3
Joined: Fri Oct 18, 2002 12:52 am

Postby Oleg Butuzov » Thu Nov 07, 2002 5:27 am

$mail="me@pejone.net";
$subj="hello";

$text ="Hello";
$text .="Hello<br>";
$text .="Hello<br>";
$text .="Hello<br>";
$text .="Hello<br>";

$header = "Some header: dasfsdf@sdfdf.com \r\n";

mail($mail, $subj, $text, $header);

Haw it looks?
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron