Jump to content

Array / Mail Question


stig1

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.