I want to create a simple form:
FirstName
LastName
Email Address
Then, Submit button.
The user will go to the site and enter his information, after hitting Submit it will say "Thank you for your submission."
Then, I want to receive an email every time someone goes to my form and hits Submit.
This must be done in ASP 1.1 NOT 2.0 code because my web host server has 1.1 only.
I know how to insert records and stuff like that, need help with email implement.
Thank you.> This must be done in ASP 1.1 NOT 2.0 code because my web host server has 1.1 only.
Then why did you ask this question in the ASP.NET v2.0 Data Controls forum????
Anyway, here is an article that will show you how to send an email:
Sending Email from an ASP.NET Web Page
First however youmust ask your web host whether they have a help page showing the code necessary to send an email from your ASP.NET page. Not all hosts will permit the use ASP.NET's SmtpMail class, as shown in the above article. If so, the web host may show an alternative way of sending an email.
why do some host not permit the use of asp.net smtpmail class? is there a security risk of using this class? just out of curiousity.
> why do some host not permit the use of asp.net smtpmail class?
Actually, I have to correct my statement.
Some hosts have special requirements when using ASP.NET's SmtpMail class. I use Brinkster, and where in the past I could use this class as per the 4guysfromrolla article, now I have to add additional properties to my mail objects. So the code from 4guysfromrolla would not work as-is. So the advice remains the same: ask your host.
The additional requirements are to combat spam, not to address any security issues.
0 comments:
Post a Comment