Solved

Sending a form in an email

Posted on 2011-03-24
2
261 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
how to create a tile layout 1 20
Detecting robots? 5 35
Expando 4 36
rearranging, beautifying pure CSS read more script 5 17
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now