|
|
 |
RE: FN-FORUM: Anyone help me out - php advice needed
date posted 9th May 2008 11:06
the actual code for line returns depend on the hosting platform. is use =
this code to find the correct line return
if (strtoupper(substr(PHP_OS,0,3)=3D=3D'WIN')) {
$eol=3D"\r\n";
} elseif (strtoupper(substr(PHP_OS,0,3)=3D=3D'MAC')) {
$eol=3D"\r";
} else {
$eol=3D"\n";
}
and then with your code do this:
$Body .=3D"Thank you for submitting your query to Housing Rights =
Service. Your
personalised response is below:".$eol;
$Body .=3D"Your Query:".$eol;
$Body .=3D"$query11".$eol;
$Body .=3D"Response:".$eol;
$Body .=3D"$respondmsg".$eol;
$Body .=3D"The e-advice service is intended for initial advice =
only.".$eol;
$Body .=3D"If you require further advice please contact us on our advice =
line
on 028 9024 5640 between 9.30am-1.30pm Monday through Friday".$eol;
$Body .=3D"and quote your reference number which appears in the subject =
line
of this email."
double line returns are : $eol.$eol;
Kind regards=20
Brendan Oliver
=20
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] Behalf Of
[EMAIL REMOVED]
Sent: 09 May 2008 12:36
To: Brendan Oliver
Subject: FN-FORUM: Anyone help me out - php advice needed
Hi everyone,
Could someone spend a minute looking at the code below, basically its =
just a
dynamic email that is sent out from a site I am developing, the email =
itself
goes out perfectly, and has all the necessary information, its just the
layout that is the problem, if anyone can point me in the right =
direction
I'd be very grateful.
$Subject =3D "Reply to your E-Advice Request - Reference =
Number:$referenceno";
$Body .=3D"Thank you for submitting your query to Housing Rights =
Service. Your
personalised response is below:\n\n";
$Body .=3D"Your Query:\n\n";
$Body .=3D"$query11\n\n";
$Body .=3D"Response:\n\n";
$Body .=3D"$respondmsg\n\n";
$Body .=3D"The e-advice service is intended for initial advice only.\n";
$Body .=3D"If you require further advice please contact us on our advice =
line
on 028 9024 5640 between 9.30am-1.30pm Monday through Friday\n";
$Body .=3D"and quote your reference number which appears in the subject =
line
of this email."
$res =3D mail($email, $Subject, $Body, $headers );
But the email that is sent out doesn't break the lines as expected, the
output is coming out as:
Thank you for submitting your query to Housing Rights Service. Your
personalised response is below: Your Query: Perpetua pericula nam an. Cu
quem eirmod aliquando sed, eam amet mucius ei. Has ex latine pericula.
Adolescens interesset his ei. Est et tale adipisci vituperata. At munere
dissentiet sit. At nec ignota nonummy posidonium, at duo ornatus =
facilis.
Tempor mnesarchum cum id, cibo appetere his an. Audiam oblique an vim. =
Nibh
erant petentium pri an, duo inani impedit laboramus eu. Response:
this is the response from HRS
second response=20
third response =20
The Advisor=20
The e-advice service is intended for initial advice only. If you require
further advice please contact us on our advice line on 028 9024 5640 =
between
9.30am-1.30pm Monday through Friday/nand quote your reference number =
which
appears in the subject line of this email.
Many thanks in advance for any advice given.
Allan
--=20
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|