Closed Thread
Results 1 to 4 of 4

Thread: [Help]Sending Email with form data

  1. #1
    Join Date
    Jul 2009
    Posts
    22
    Blog Entries
    1
    Rep Power
    0

    Exclamation [Help]Sending Email with form data

    Hey everyone, I'm back. I haven't been programming for some time now although I still remember quite a few. I need to refresh my memory, schools been in the way for quite awhile because it's extremely difficult (private school) Anyways back to the point, I'm trying to get a app to send all the form data to an email in the background process. How can this be done?
    For example:
    Follow everything I do and learn with Microsoft Visual Studio on my new Blog - Nick's Visual Studio Blog

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    QuackWare is offline Learning Programmer
    Join Date
    Jan 2010
    Posts
    95
    Rep Power
    8

  4. #3
    Join Date
    Jul 2009
    Posts
    22
    Blog Entries
    1
    Rep Power
    0

    Re: [Help]Sending Email with form data

    Ah, thanks. It's really helpful, especially since it's a video!
    Follow everything I do and learn with Microsoft Visual Studio on my new Blog - Nick's Visual Studio Blog

  5. #4
    TriggerHappy is offline Learning Programmer
    Join Date
    Feb 2010
    Posts
    30
    Rep Power
    0

    Re: [Help]Sending Email with form data

    This is a function I use to send form data inside the web;

    Code:
            string post_form_data(string urlstring postData)
            {
                
    WebClient client = new WebClient();

                
    //client.Headers.Add("Cookie", cookie);
                
    client.Headers.Add("Content-Type""application/x-www-form-urlencoded");

                
    byte[] byteArray Encoding.ASCII.GetBytes(postData);
                
    byte[] responseArray client.UploadData(url"POST"byteArray);

                return 
    Encoding.ASCII.GetString(responseArray);
            } 
    I'm not sure if it will help or not.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Sending an email
    By AdvMutant in forum The Lounge
    Replies: 7
    Last Post: 11-13-2010, 04:04 AM
  2. Sending Email
    By DMK741 in forum CSharp Tutorials
    Replies: 5
    Last Post: 08-18-2010, 06:44 PM
  3. PHP contact form isn't sending out email
    By jonathan1987 in forum PHP Development
    Replies: 1
    Last Post: 05-26-2010, 05:15 PM
  4. Sending Email Form
    By millsy007 in forum PHP Development
    Replies: 1
    Last Post: 05-20-2009, 05:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts