Solved

Sending a form in an email

Posted on 2011-03-24
2
265 Views
Last Modified: 2012-08-13
Hello all I am trying to send a form via email I have a dll that does this and will accept HTML code but I am having a problem with it.  I need the form to send EXACTLY as it has been filled out and its giving me are you ready????? 311 errors. I am not sure if its becasue of the HTML tags or what but if someone could help it would be appreciated.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Jenzabar.Portal.Framework.Web.UI;
using ParkSendEmail_v1_11_16_2007;

namespace PARK_FinAid_Portlet_V1_3_23_11.Views.Main
{
    public partial class Pagel1 : PortletViewBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            ParkSendEmail supersender = new ParkSendEmail();
            supersender.bolHTML = true;
            supersender.strToEmail = "rshier@park.edu";
            supersender.strSubject = " Satisfactory Academic Progress (SAP) Appeal Form";
            supersender.strFromEmail = TextBox6.Text;
            supersender.strBodyEmail =<span class="style7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>Satisfactory Academic Progress 
(SAP) Appeal Form</strong></span><br />
<br />
<strong>Complete this form and submit documentation needed to support your 
appeal.</strong><br />
<br />
<table border="1" class="style2">
    <tr>
        <td class="style3">
            Name:</td>
        <td>
            <asp:TextBox ID="TextBox1" runat="server" Width="550px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style3">
            Student ID:</td>
        <td>
            <asp:TextBox ID="TextBox2" runat="server" Width="550px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style3">
            Campus Attending:</td>
        <td bgcolor="White">
            <asp:TextBox ID="TextBox3" runat="server" Width="550px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style3">
            Current Address:</td>
        <td>
            <asp:TextBox ID="TextBox4" runat="server" Width="550px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style3">
            Telephone:</td>
        <td>
            <asp:TextBox ID="TextBox5" runat="server" Width="550px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="style3">
            Email Address:</td>
        <td>
            <asp:TextBox ID="TextBox6" runat="server" Width="550px"></asp:TextBox>
        </td>
    </tr>
</table>
<table border="1" class="style2">
    <tr>
        <td>
            Please be specific in explaining why the minimum academic hours and/or grade 
            points were not earned. Indicate the mitigating circumstances that have 
            contributed to your inability to maintain SAP by checking the categories below 
            that apply to you. You must describe in detail and be able to document your 
            circumstances.<strong> FAILURE TO SUBSTANTIATE YOUR CIRCUMSTANCES WILL RESULT IN 
            YOUR APPEAL BEING DENIED FOR LACK OF DOCUMENTATION.</strong></td>
    </tr>
</table>
<table class="style4">
    <tr>
        <td>
            o <strong>Serious illness or injury to student or immediate family member</strong> 
            (parent, spouse, sibling or child) that required extended recovery time. (attach 
            a statement from the physician that explains the nature and dates of the illness 
            or injury o <strong>Death of an immediate family member.</strong> Attach a 
            photocopy of death certificate and include the name of the deceased and 
            relationship to you<br />
            o <strong>Significant trauma in student’s life that impaired the student’s 
            emotional and/or physical health.</strong> (Provide supporting documentation 
            from a third party, such as a physician, social worker, police, etc.)<br />
            o <strong>Other unexpected documented circumstances beyond the control of the 
            student.</strong> (Explain in detail with dates of the unexpected circumstance 
            with documentation.</td>
    </tr>
</table>
<table class="style5">
    <tr>
        <td>
            <strong>Please describe in detail the basis for your appeal. In addition 
            indicate how you plan to be successful in future terms:</strong></td>
    </tr>
</table>
<table class="style4">
    <tr>
        <td class="style6">
            <asp:TextBox ID="TextBox7" runat="server" Height="93px" TextMode="MultiLine" 
                Width="719px"></asp:TextBox>
        </td>
    </tr>
</table>
<strong>Note:</strong> A response email will be generated after your appeal and 
documentation are received and evaluated. Please fax, email, or mail the 
documentation to support your appeal. Please note in the appeal which method you 
will use and send to one of the following:<br />
&nbsp;• Fax # <br />
&nbsp;• Email <a href="mailto:finaidappeal@park.edu">finaidappeal@park.edu</a><br />
&nbsp;• Mail to , Student Financial Services, MO 64152.<br />
&nbsp;Your documentation should be submitted within <strong>7 days</strong> after 
submission of the appeal.
<br />
<br />
<asp:TextBox ID="TextBox8" runat="server"></asp:TextBox>
(name) certify that to the best of my knowledge all the information in this 
request is correct and complete and all colleges, schools, or organizations 
indicated have my permission to verify any information furnished herein on this 
date.<br />
&nbsp;<br />
<asp:TextBox ID="TextBox9" runat="server"></asp:TextBox>
&nbsp;(today). I understand that I must be a degree-seeking student to receive 
financial aid.
<br />
<br />
<br />
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
    Text="I agree with the above statement" />
<br />
<br />
 does not discriminate on the basis of sex, age, race, creed, 
color, and disability, national or ethnic origin in the administration of 
education and admission policies, financial assistance, athletic, and other 
school-related programs. If you have comments or questions about this policy as 
it applies. </div>;
            supersender.funSendEmail();
        }
    }
}

Open in new window

0
Comment
Question by:HawaiiDragon
2 Comments
 
LVL 13

Accepted Solution

by:
darren-w- earned 500 total points
ID: 35207032
Line 26 onwards looks a bit suspect, assuming this section needs to be encapsulated in speech marks and escaped if required
0
 

Author Closing Comment

by:HawaiiDragon
ID: 35207560
Yep, I forgot to encapsulate..... HawaiiDragon = silly mistake boy
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to force output to ascii 2 41
Two decimal 5 30
c#, case, if 4 22
javascript works in Chrome, but none of the other browsers 14 37
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question