Folks:Need help with alignment/format of the email. I have the sql query (below) which sends email to users when a new record is added. It works great but the alignment/format of the email is differenct. In the body I want the email in this format instead of one single line and it should be on the Left side.New Record Updated / Inserted:SEC : ABCDEFGFIELD : JOHN IS GOODHere is the SQL used currently to send the email:DECLARE @mailbody varchar(max) SET @mailbody = 'New Record Updated / Inserted: ' +' SEC : ' + @SSEC + ' FIELD : ' + @SFieldEXEC msdb.dbo.sp_send_dbmail@profile_name = 'XYZ',@recipients = 'abc@pqrz.com,@body = @mailbody,@subject = 'Alert'
Thanks !