Monday, August 3, 2009

Building website, anyone help me with ASP.net?

I signed up for Microsoft%26#039;s Basic web hosting, they don%26#039;t allow third party website building but I%26#039;ve managed to add a members page. Well, when the member goes to submit their information, I need that information sent to me in my email so I can add it to a database. So if anyone knows of asp.net code that could work with this, it would be great. Also, I have added a members page in the document gallery but I don%26#039;t want it to show up as /Documents/member.aspx, how do I cloak this and protect it for when the member logs in? Go to my website at www.gamerzoneinc.com for more on what I%26#039;m talking about. Thank you!!!



Building website, anyone help me with ASP.net?





public void SendNotificationEmail ( string strEmail, string strSubject)



{



MailAddress From = new MailAddress( %26quot;myaddress@myaddress.com%26quot; );



MailAddress To = new MailAddress( System.Configuration.ConfigurationManage... [%26quot;ReportMailTO%26quot;] );



MailAddress CC = new MailAddress( System.Configuration.ConfigurationManage... [%26quot;ReportMailTOCC%26quot;] );



System.Net.Mail.MailMessage objMailMessage = new System.Net.Mail.MailMessage( From, To );



objMailMessage.CC.Add( CC );



objMailMessage.Subject = strSubject;



objMailMessage.Body = strEmail;



objMailMessage.IsBodyHtml = true;



SmtpClient client = new SmtpClient( System.Configuration.ConfigurationManage... [%26quot;SmtpServer%26quot;] );



client.Send( objMailMessage );



}



this is a real quick email sending function in asp.net you can modify it as you wish. also a simple way to cloak the URL would be to change the 404 HTTP error to point to the correct page and have the log-in pointing to a page that does not exist. But you have to have admin rights on the server in order to change those things in IIS.

No comments:

Post a Comment