problem about cuteeditor tag "form" property EncodingType=html

Last post 10-06-2008, 1:33 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-01-2008, 3:01 AM 44456

    problem about cuteeditor tag "form" property EncodingType=html

    I am sending a mail through form tag.mail goes but in plain text formate.i want to achive mail as i design in the form of form tag.
    when i set cuteeditor form property EncodingType=html then nothing show in mail body.
     
    i am sending my html code....
     
     
    <p>
    <form id="contactform" style="height: 24px" name="contactform" action="mailto:govind.patel@dev01.shriyais.com" method="post" target="_self" enctype="text/plain">
        <br />
        <div><input id="Submit" style="text-indent: 12px" tabindex="3" type="submit" value="Submit" name="Submit" /></div>
        <div>&nbsp;</div>
        <div>&nbsp;</div>
        <table style="border-right: black 1px solid; border-top: black 1px solid; font-size: 11px; border-left: black 1px solid; border-bottom: black 1px solid; font-family: verdana" cellspacing="0" cellpadding="0" width="100%"  ?>
            "
            <tbody>
                <tr valign="top">
                    <td noWrap align="right" width="15%"  font-weight:bold??><strong>Requested By</strong></td>
                    <td align="center" width="2%"  font-weight:bold??>:</td>
                    <td align="left" width="10%"><input id="text1" value="Requested By" name="Requested By"  type="text" /></td>
                    <td align="right" width="15%"  font-weight:bold??><strong>Created Date</strong></td>
                    <td align="center" width="2%"  font-weight:bold??>:</td>
                    <td noWrap align="left"><input id="text7" value="Created Date" name="Created Date"  type="text" /></td>
                </tr>
                <tr valign="top">
                    <td noWrap align="right" 15px;font-weight:bold?? height:><strong>Created By</strong></td>
                    <td align="center" font-weight:bold?? height: 15px??>:</td>
                    <td align="left" height: 15px??><input id="text2" value="Created By" name="Created By"  type="text" /></td>
                    <td align="right" 15px;font-weight:bold?? height:><strong>Supplier</strong></td>
                    <td align="center" font-weight:bold?? height: 15px??>:</td>
                    <td style="width: 309px; height: 24px" align="left" height: 15px??><input id="text8" value="Supplier" name="Supplier"  type="text" /></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold" align="right">CC Number</td>
                    <td align="center" font-weight:bold??>:</td>
                    <td align="left"><input id="text3" type="CC Number" value="text3" name="CC Number" /></td>
                    <td align="right" font-weight:bold??><strong>Requested Date</strong></td>
                    <td align="center" font-weight:bold??>:</td>
                    <td align="left"><input id="text9" type="Requested Date" value="text9" name="Requested Date" /></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold" align="right">GL Number</td>
                    <td align="center" font-weight:bold??>:</td>
                    <td align="left"><input id="text4" value="GL Number" name="GL Number"  type="text" /></td>
                    <td align="right" font-weight:bold??><strong>Status</strong></td>
                    <td align="center" font-weight:bold??>:</td>
                    <td align="left"><input id="text10" value="Status" name="Status"  type="text" /></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold" align="right">Location</td>
                    <td align="center" font-weight:bold??>:</td>
                    <td align="left"><input id="text5" value="Location" name="Location"  type="text" /></td>
                    <td align="right" font-weight:bold??><strong>Ship To</strong></td>
                    <td align="center" font-weight:bold??>:</td>
                    <td align="left">&nbsp;<input id="text11" value="Ship To" name="Ship To"  type="text" /></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold" align="right">Project Name</td>
                    <td align="center" font-weight:bold??>:</td>
                    <td align="left"><input id="text6" value="Project Name" name="Project Name"  type="text" /></td>
                    <td align="right"></td>
                    <td align="center"></td>
                    <td align="left"></td>
                </tr>
            </tbody>
        </table>
        <br />
        <table style="border-right: black 1px solid; border-top: black 1px solid; font-size: 11px; border-left: black 1px solid; border-bottom: black 1px solid; font-family: verdana" cellspacing="0" cellpadding="0" width="100%"  ?>
            <tbody>
                <tr valign="top">
                    <td noWrap align="right" width="15%"  15px;font-weight:bold?? height:><strong>Item No</strong></td>
                    <td align="center" width="2%"  font-weight:bold?? height: 15px??>:</td>
                    <td align="left" width="10%"  height: 15px??><input id="text12" value="Item No" name="Item No"  type="text" /></td>
                    <td align="right" width="15%"  15px;font-weight:bold?? height:></td>
                    <td align="center" width="2%"  15px?? font-weight:bold;height:><strong></strong></td>
                    <td align="left" width="20%" rowspan="6" height: 15px??></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold; height: 15px"  noWrap align="right">Item Name</td>
                    <td style="font-weight: bold; height: 15px" align="center">:</td>
                    <td style="height: 15px" align="left"><input id="text13" value="Item Name" name="Item Name"  type="text" /></td>
                    <td align="right"></td>
                    <td align="center"></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold; height: 15px" align="right">Currency</td>
                    <td align="center" font-weight:bold??>:</td>
                    <td align="left"><input id="text14" value="Currency" name="Currency"  type="text" /></td>
                    <td align="right"></td>
                    <td align="center"></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold; height: 16px" align="right">Quantity</td>
                    <td style="font-weight: bold; height: 16px" align="center">:</td>
                    <td style="height: 16px" align="left"><input id="text15" value="Quantity" name="Quantity"  type="text" /></td>
                    <td style="height: 16px" align="right"></td>
                    <td style="height: 16px" align="center"></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold; height: 16px" align="right">Price</td>
                    <td style="font-weight: bold" align="center">:</td>
                    <td align="left"><input id="text16" type="Price" value="text16" name="Price" /></td>
                    <td align="right"></td>
                    <td align="center"></td>
                </tr>
                <tr valign="top">
                    <td style="font-weight: bold; height: 16px" align="right">Total</td>
                    <td style="font-weight: bold" align="center">:</td>
                    <td align="left"><input id="text17" value="Total" name="Total"  type="text" /></td>
                    <td align="right"></td>
                    <td align="center"></td>
                </tr>
            </tbody>
        </table>
        <table style="font-size: 11px; font-family: verdana" width="100%">
            <tbody>
                <tr valign="top">
                    <td style="width: 226px" align="right"></td>
                    <td align="center" width="2%"></td>
                    <td align="left" width="75%" colspan="4"></td>
                </tr>
                <tr>
                    <td style="width: 226px"><a style="font-weight: bold; font-size: 12px; font-family: verdana; href_cetemp: " href=""  ?>Click here to access request. </a></td>
                </tr>
            </tbody>
        </table>
        <br />
        <table style="font-size: 12px; font-family: verdana" cellspacing="0" cellpadding="0" width="100%">
            <tbody>
            </tbody>
        </table>
    </form>
    <p>&nbsp;</p>
  •  10-06-2008, 1:33 AM 44595 in reply to 44456

    Re: problem about cuteeditor tag "form" property EncodingType=html

    Hi govind_rkdf,
     
    The enctype attribute of the FORM element specifies the content type used to encode the form data set for submission to the server.
     
    By W3.org, only the following Content types are supported:
     
    - multipart/form-data
    - application/x-www-form-urlencoded
    - text/plain
     
    Btw, are you trying to send HTML email instead of plain Text email?
     
    If so, please try the code below:
     
         SmtpMail.SmtpServer = "mail.CuteSoft.net";
         MailMessage mail = new MailMessage();
         mail.From = "some@some.com";
         mail.Subject = "test";
          mail.Body = "<b>Hello World</b>";
         mail.To = "some@some.com";
         mail.BodyFormat = MailFormat.Html;
         SmtpMail.Send(mail);
     
    Hope it helps
     
     
    regards,
     
    Ken
View as RSS news feed in XML