|
I signed up for Microsoft's Basic web hosting, they don't allow third party website building but I'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'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'm talking about. Thank you!!!
Building website, anyone help me with ASP.net?
public void SendNotificationEmail ( string strEmail, string strSubject)
{
MailAddress From = new MailAddress( "myaddress@myaddress.com" );
MailAddress To = new MailAddress( System.Configuration.ConfigurationManage... ["ReportMailTO"] );
MailAddress CC = new MailAddress( System.Configuration.ConfigurationManage... ["ReportMailTOCC"] );
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... ["SmtpServer"] );
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.
|