Kevin Robinson
asked on
Vb.Net Email
I have set up a form to allow users to send an email. The message box I have is text box and so does not allow formatting. I have changed this to a richtext box.
How can I send the richtext by email rather than just the plain text.
How can I send the richtext by email rather than just the plain text.
use this instead http://www.kevinroth.com/rte/demo.htm
and set ur mailformat to HTML.
best of luck
Prashant
and set ur mailformat to HTML.
best of luck
Prashant
ASKER
Sorry this is ASP code, I am using VB.NET from visual strudio
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ya i have used this with vb.net. As follows :
<div id="mailrtf" style="Z-INDEX: 131; LEFT: 24px; POSITION: absolute; TOP: 488px" runat="server">
<script language="JavaScript" type="text/javascript">
writeRichText('rte1', '<%=sText%>', 400, 200, true, false);
</script>
</div>
<asp:textbox id="txtMailTxt" style="DISPLAY: none; Z-INDEX: 135; LEFT: 704px; POSITION: absolute; TOP: 400px"
runat="server"></asp:textb ox>
On page load set sText with text entered by user.
thats asp sample is just for help
Prashant
<div id="mailrtf" style="Z-INDEX: 131; LEFT: 24px; POSITION: absolute; TOP: 488px" runat="server">
<script language="JavaScript" type="text/javascript">
writeRichText('rte1', '<%=sText%>', 400, 200, true, false);
</script>
</div>
<asp:textbox id="txtMailTxt" style="DISPLAY: none; Z-INDEX: 135; LEFT: 704px; POSITION: absolute; TOP: 400px"
runat="server"></asp:textb
On page load set sText with text entered by user.
thats asp sample is just for help
Prashant
ASKER
I have set it up using Real_McKoy way, now I can add HTML tags in the text box. Is there any easy way to improve on this so people with out knowledge of HTML can format the text.
prashantagarw10 the ASP example cannot work as the script needs to run on IIS where as my page is sent by email.
prashantagarw10 the ASP example cannot work as the script needs to run on IIS where as my page is sent by email.
The only work around I see is to use the RichTextBox and build some fancy HTML encoder based on the property of the text entered in the control.
what does ur email code looks???