Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I used MSSQL Server 2008 Express to send emails.....and in the code there is --> @message = N'message here'. The problem is sent messages appear as one line. How do I format my message such that when I want some newline, it will appear "entered" in my email....I guess their is some special tags used in emails. Can you give me some links. Thanks.
Posted

1 solution

You can use all HTML tags while formatting email in SQL mail text.
 
Share this answer
 
Comments
this_is_my_alias 27-Apr-11 9:54am    
I already tried adding html tags but they are printed as well...
this_is_my_alias 28-Apr-11 8:05am    
Ohhh....I just missed something. I just changed 'text/plain' to 'text/html'. :D
Ravi Sant 28-Apr-11 14:00pm    
thats good, hope it worked :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900