ASP.net: emailing form contents w/ aspMail

Discussion in 'ASP.NET / ASP.NET Core' started by Abby, Sep 22, 2003.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I'm creating a webpage that allows a customer to request certain products (but not purchase them). Anyway, the request is sent from the form to my email acct via ASPMail. This is done by having all the form data sent to another webpage with the asp code that then sends the data to my email acct...pretty basic. However, I have a new request form that I'm working on which uses ASP.Net form field authentication and I love the dynamic qualities to asp.net form validation. The problem I'm having is probably common but I haven't found an answer on asp.net or asp101 or 4guysfromrolla. I need to send the form data (asp.net page) to another page that has the ASPMail code (all is classic asp). For whatever reason, it isn't working...the form validates then "response.redirect" to the web page with the ASPMail code. The field names match so why isn't it sending the email? The asp method is so simple, does the asp.net feature make this a more complex process?

    Help.[B)]
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    ASP.net works differently. When you redirect using server.redirect, you loose all the Post or get vars. You should us a complete ASP.net solution by keeping the email sending function inside the same page.


    quote:Originally posted by Abby

    I'm creating a webpage that allows a customer to request certain products (but not purchase them). Anyway, the request is sent from the form to my email acct via ASPMail. This is done by having all the form data sent to another webpage with the asp code that then sends the data to my email acct...pretty basic. However, I have a new request form that I'm working on which uses ASP.Net form field authentication and I love the dynamic qualities to asp.net form validation. The problem I'm having is probably common but I haven't found an answer on asp.net or asp101 or 4guysfromrolla. I need to send the form data (asp.net page) to another page that has the ASPMail code (all is classic asp). For whatever reason, it isn't working...the form validates then "response.redirect" to the web page with the ASPMail code. The field names match so why isn't it sending the email? The asp method is so simple, does the asp.net feature make this a more complex process?

    Help.[B)]
    </blockquote id="quote"></font id="quote">
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page