Syntax in C# to generate an email from an application form and send the email with application forms contents to an individual.

Posted on 2006-04-24
Last Modified: 2010-04-16
I have an Application form, it like an Employee online application form where customers go online and they enter information into the form. However all I am storing is the Id for the form, there userId and the Body of the application and I have a table set up for this. I was just wondering in the code behind once they click on the Submit Application button, how do I generate an email containing all the information they entered just into the Application Form and send this information to an employee in the HR department?
Has anyone got any ideas.
Thanks in advance for all the help.
Question by:sabrina_spillane
    LVL 6

    Accepted Solution


    Author Comment

    Do you know of anything that would work with DotNetNuke. For example something like a SendNotification control that sends an email? thanks again for all the help.

    Author Comment

    Any ideas on this matter?

    I created a new StringBuilder and I want to use the AppendFormat to collect all the inputted data to my web form and send it as a string.
    On my web form I have a collection of labels and textboxes and check boxes. How do I use the AppendFormat(), I have looked it up in Microsoft but I still unsure.
    For example: Here is a sample of my web form

    <TD>Function Name:
    <asp:TextBox id="txtFuncName" runat="server" Width="187px" MaxLength="60"></asp:TextBox></TD>
    <TD>Contact Name:</TD>
    <asp:TextBox id="txtName" runat="server" Width="127px" MaxLength="50"></asp:TextBox></TD>                                    
    <asp:TextBox id="txtCity" runat="server" Width="100px" MaxLength="30"></asp:TextBox></TD>
    <asp:TextBox id="txtState" runat="server" Width="25px" MaxLength="18"></asp:TextBox></TD>
    <asp:TextBox id="txtZip" runat="server" Width="50px" MaxLength="11"></asp:TextBox></TD>

    now what i was to know is how i create this using appendformat()?

    And if I have two field in the one row how do i output the together?

    Also how do I set the body of the format to html?

    Thanks in advance for all the help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Article by: Ivo
    C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    761 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

    8 Experts available now in Live!

    Get 1:1 Help Now