I have to send a couple of rows that have been returned from a SQL query. I have written the output of the query to a file and while i try to print this in the mail body the formatting goes wrong.
Intended Output in mail body:
Col1 Col2 Col3
------ ------- ------
Bombay Raj 23
Delhi Raja 24
etc..
But what i get currently is :
Col1 Col2 Col3
---- ----- ------
Bombay Raj 23
Delhi Raja 24
etc..
Please suggest a way how i can format this in the mail body.
P.S: The file to which i re-direct the query output is formatted as required, but the mail body isnt. Please help. TIA!
---------- Post updated at 09:58 PM ---------- Previous update was at 09:56 PM ----------
Sorry the intended output has to have the right amount of spaces. :(Somehow the spaces disappeared in the post. Please help. TIA!