Forum Moderators: coopster

Message Too Old, No Replies

linebreaks in outlook

         

brancook

6:32 pm on Aug 8, 2007 (gmt 0)

10+ Year Member



I'm having an awful time trying to format an automatic email. When the email is view in outlook it removes the linebreaks from the format if I add a "\n\n" to my code then the entire email is double spaced.

Are there any hacks to get around the problem in outlook?

jatar_k

6:54 pm on Aug 8, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



can you show us the formatting you are using.

have you tried sending "\r\n" instead of just "\n"

brancook

9:02 pm on Aug 8, 2007 (gmt 0)

10+ Year Member



I tried the "\r\n" and that didn't seem to work. Here is my format:

$destination_email = "myemail@yahoo.com";
$email_subject = "STA - Widget Supplied Material";
$email_body = "The STA - Widget Supplied Material database has been modified."."\r\n".
"If you have any questions, please email me at myemail@yahoo.com - Do Not Reply to this email"."\n\n".
"STA - Widget : $manual"."\r\n".
"STA - Widget : $quick_setup"."\r\n".
"STA - Widget : $important"."\r\n".
"STA - Widget : $label"."\n\n".
"STA - Widget : $sta_0017"."\r\n".
"STA - Widget : $sta_0018"."\r\n".
"STA - Widget : $sta_0019"."\r\n".
"STA - Widget : $sta_0020"."\r\n".
"STA - Widget : $sta_0021"."\r\n".
"STA - Widget : $sta_0023"."\n\n".
"Widget : $sta_0024"."\r\n".
"Widget : $sta_0023"."\r\n".
"Widget : $sta_0023"."\r\n".
"Widget : $sta_0023"."\n\n".
"You can also view the database by visiting here:";
if ($_POST['submitted']) {
mail ($destination_email, $email_subject, $email_body);
}