Link to home
Start Free TrialLog in
Avatar of Kevin Robinson
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.


Avatar of bman9111
bman9111

are u using webmail feature.

what does ur email code looks???

use this instead http://www.kevinroth.com/rte/demo.htm

and set ur mailformat to HTML.

best of luck
Prashant
Avatar of Kevin Robinson

ASKER

Sorry this is ASP code, I am using VB.NET from visual strudio

ASKER CERTIFIED SOLUTION
Avatar of Omar McKoy
Omar McKoy
Flag of Jamaica image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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:textbox>
On page load set sText with text entered by user.

thats asp sample is just for help

Prashant
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.

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.