Last post Apr 28, 2008 05:01 PM by AdvanIntel
Apr 23, 2008 05:55 PM|polynaux|LINK
I just wonder how to format the message body correctly.
For an html email had this solution:
mail.Body = TextBoxMessage.Text + _
"please click on: " + "<br>" + "http://xxx/yyyyy.aspx" + strSessionID
Somehow the <br> does not work i.e. there is no line break.
Also I wonder if it is possible to use a html link (a href) defined over CLICK HERE, rather than showing the long link made up of the strSessionID in an email.
If that could happen i.e. having proper link in my email, how would that look than if the users email client only accepts text email?
Apr 24, 2008 12:17 AM|Joël Hébert|LINK
what I usually do is load a template in a resource file
and add %link% then use a regex to replace it....this way in the business layer you are never moving any UI stuff or testing any you are only injecting the data to replace the placeholder
the <br> might not work if you have tables set in the rest of your code, hard to tell at present....
also you have to set the mail object to be html
Apr 28, 2008 05:01 PM|AdvanIntel|LINK