|
|
 |
RE: FN-FORUM: Anyone help me out - php advice needed
date posted 9th May 2008 11:40
Thanks everyone who responded. I thought I'd set the form for text only,
but obviously I hadn't cos as soon as I replaced /n for worked a
treat.
I've taken note of everyones comments regarding using phpmailer etc, and am
looking at that for the next part of this particular project.
Thanks again.
Allan
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of
[EMAIL REMOVED]
Sent: 09 May 2008 12:35
To: FN-FORUM / [EMAIL REMOVED]
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 = "Reply to your E-Advice Request - Reference Number:$referenceno";
$Body .="Thank you for submitting your query to Housing Rights Service. Your
personalised response is below:\n\n";
$Body .="Your Query:\n\n";
$Body .="$query11\n\n";
$Body .="Response:\n\n";
$Body .="$respondmsg\n\n";
$Body .="The e-advice service is intended for initial advice only.\n";
$Body .="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 .="and quote your reference number which appears in the subject line
of this email."
$res = 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
third response
The Advisor
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
--
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
|
 |
|