|
|
 |
Re: FN-FORUM: Anyone help me out - php advice needed
date posted 9th May 2008 11:09
Dump the mail command, and use PHP Mailer.
http://phpmailer.codeworxtech.com/
It's easy to use and will create correctly formatted headers and emails,
it's also more secure.
Martin
On 09/05/2008 12:36, [EMAIL REMOVED] wrote:
> 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
>
>
|
 |
|