Skip to content
Advertisement

I want to send the filtered data to my mail from the Database

I have written the code for Filter the data from Database and send the result via mail. Its sending the mail, but its sending separate mails for each row displaying in the result. I want the result in a single mail. I have share the code iam using now.

JavaScript

Advertisement

Answer

I think you can just use .= to concatenate onto the txt variable, and then move the mail stuff outside of the loop.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement