stig1 Posted April 8, 2009 Share Posted April 8, 2009 I have the following code: $success = array(); $success[] = "Function Item Successful"; $success[] = "Function Catalogue Successful"; $countSuccess = count($success); if ($countSuccess != 0) { // puts array information into string. $emailBody = implode("",$success); mail($to,'Successful',$emailBody,'From: site@site.com.au'); } When i recieve the email, all the information comes out, however, it does not put the information onto a new line. How can i get it in my email to show a new line each array? Link to comment https://forums.phpfreaks.com/topic/153093-mail-help/ Share on other sites More sharing options...
xtopolis Posted April 8, 2009 Share Posted April 8, 2009 implode("\n",$success) or if it's an HTML email, then implode using <br /> instead of \n Link to comment https://forums.phpfreaks.com/topic/153093-mail-help/#findComment-804189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.