Hi All - I have created a survey and I would like the results of the
survey to be emailed the boss in *plain text*.
Can someone PLEASE take a look and tell me why carriage returns are
not being inserted after each $body ? The email comes out as one big
line.
THANK YOU! Sylvie.
include('Mail.php');
include('Mail/mime.php');
$body .= "Are you aware that SCC has a TDC?\n";
$body .= "$_POST[one]\n";
$body .= "Do you know that our resources are available to clients
outside of SCC on an appointment basis?\n";
$body .= "$_POST[three]\n";
$body .= "Do you have occasion to reference the Virtual
Library?<br>\n";
$body .= "$_POST[four]\n";
$body .= "Do you require access collections other than those
available?\n";
$body .= "$_POST[fivea]\n";
$body .= "If so, please indicate which collections\n";
$body .= "$collection\n";
$body .= "Comments\n";
$body .= "$_POST[comments]\n";
$crlf = "\r\n";
$hdrs['From'] = 'a********@home.ca';
$hdrs['To'] = 't******@home.ca';
$hdrs['Subject'] = "TDC Survey for $_POST[year]";
$mime = new Mail_mime($crlf);
$mime->setTXTBody($body);
$body = $mime->get();
$hdrs = $mime->headers($hdrs);
$mail =& Mail::factory('mail');
$mail->send('t******@home.ca', $hdrs, $body);