stig1 Posted April 7, 2009 Share Posted April 7, 2009 I have created an array called errors, if the array is not empty, I would like to send the data in the array to my email address as notification. I am stuck on how do you get the values of the array to print in the email without the keys. I have the following already done: $errors = array(); // Errors scripts are attached to sql statements $countErrors = count($errors); if ($countErrors != 0) { // This prints it out on the screen.. how do get it to email me the output, instead of echo on screen? foreach ($errors as $msg) { echo $msg; } } Help is always apprecaited. And a huge thankyou in advance Link to comment https://forums.phpfreaks.com/topic/153080-array-mail-question/ Share on other sites More sharing options...
stig1 Posted April 7, 2009 Author Share Posted April 7, 2009 Any ideas? Link to comment https://forums.phpfreaks.com/topic/153080-array-mail-question/#findComment-804064 Share on other sites More sharing options...
stig1 Posted April 8, 2009 Author Share Posted April 8, 2009 Sorted out the problem, all good now! Link to comment https://forums.phpfreaks.com/topic/153080-array-mail-question/#findComment-804167 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.