ASP.NET·¢ËÍEmail¾«¼ò°æ
using System.Net;
using System.Net.Mail;
using System.Text;
#region ·¢ËÍEmail
public void sendEmail()
{
#region ÑéÖ¤email
SmtpClient smtp = new SmtpClient(); //ʵÀý»¯Ò»¸öSmtpClient
smtp.DeliveryMethod = SmtpDeliveryMethod.Network; //½«smtpµÄ³öÕ¾·½Ê½ÉèΪ Network
smtp.EnableSsl = false;//smtp·þÎñÆ÷ÊÇ·ñÆôÓÃSSL¼ÓÃÜ
smtp.Host = "smtp.sina.net"; //Ö¸¶¨ smtp ·þÎñÆ÷µØÖ·
smtp.Port = 25;//Ö¸¶¨ smtp ·þÎñÆ÷µÄ¶Ë¿Ú£¬Ä¬ÈÏÊÇ25£¬Èç¹û²ÉÓÃĬÈ϶˿ڣ¬¿ÉÊ¡È¥
smtp.UseDefaultCredentials = true; //Èç¹ûÄãµÄSMTP·þÎñÆ÷²»ÐèÒªÉí·ÝÈÏÖ¤£¬ÔòʹÓÃÏÂÃæµÄ·½Ê½£¬²»¹ý£¬Ä¿Ç°»ù±¾Ã»Óв»ÐèÒªÈÏÖ¤µÄÁË
smtp.Credentials = new NetworkCredential("123@456.com","123456"); //EmailÕ˺źÍÃÜÂë
#endregion
#region ËÍÐÅÈË
MailMessage mm = new MailMessage(); //ʵÀý»¯Ò»¸öÓʼþÀà
mm.Priority = MailPriority.High;//ÓʼþµÄÓÅÏȼ¶£¬·ÖΪ Low, Normal, High£¬Í¨³£Óà Normal¼´¿É
mm.from = new MailAddress("123@456.com", "·¢ÐÅÈËÃû³Æ", Encoding.GetEncoding(936));
#endregion
#region ÊÕÐÅÈË
mm.To.Add(new MailAddress(email, email, Encoding.GetEncoding(936)));//µ±È»Ò²¿ÉÒÔÓÃÈ«µØÖ·Ìí¼Ó
mm.Subject = "ÄúÔÚXXXXXÍøµÄ×¢²áÐÅÏ¢"; //Óʼþ±êÌâ
mm.SubjectEncoding =
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔÇ°µÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕ߶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
ASP¡£NETÖй²Óм¸ÖÖÀàÐ͵Ŀؼþ
========================================
Á½ÖÖ£º
1. ¿Í»§¶Ë¿Ø¼þ£¬Ò²¾ÍÊÇÎÒÃÇÔÚHTMLÖо³£Óõ½µÄ
2. ·þÎñ¶Ë¿Ø¼þ£¬ÀýÈç: <asp:TextBox ID="txt" runat="server" />
¿Í»§¶Ë¿Ø¼þÒ²¿ÉÒÔת³É·þÎñ¶Ë¿Ø¼þ
<input type="text" id="txt" runat="server" />
HTML ºÍ WEB
ASP¡£NET ......
ÔµØÖ·£º
http://msdn.microsoft.com/en-us/library/aa480476.aspx
IIS Authentication
ASP.NET authentication is a two-step process. First, Internet Information Services (IIS) authenticates the user and creates a Windows token to represent the user. IIS determines the authentication mode that it shoul ......
ASP.NETĬÈÏÀ©Õ¹ÃûΪ.aspx£¬¿ÉÊÇÎÒÃÇ¿´µ½Ðí¶àÍøÕ¾µÄÀ©Õ¹ÃûºÜÌر𣬱ÈÈçУÄÚµÄdo¡£¸öÐÔÖ®Ó໹¿ÉÒÔʵÏÖ¼òµ¥µÄα¾²Ì¬£¨¼´°Ñºó׺¸ÄΪhtml£©²»¹ýÏà¶ÔURLRewriterÀ´Ëµ£¬ÊÇÓеã¼òª£¨Ö»ÄܸĵôÁ¬½ÓÖеÄ.aspx£©£¬²»¹ý²»Ê§ÎªÒ»ÖÖ·½·¨¡£ÏÂÃæÎÒÃǾÍÀ´ÊµÏÖËû£¡
ÏÈÀ´ËµÒ»ÏÂASP.NET 1.1Öеķ½·¨£º
......
Êý¾Ý¿â·ÃÎÊÐÔÄÜÓÅ»¯
Êý¾Ý¿âµÄÁ¬½ÓºÍ¹Ø±Õ
¡¡¡¡·ÃÎÊÊý¾Ý¿â×ÊÔ´ÐèÒª´´½¨Á¬½Ó¡¢´ò¿ªÁ¬½ÓºÍ¹Ø±ÕÁ¬½Ó¼¸¸ö²Ù×÷¡£ÕâЩ¹ý³ÌÐèÒª¶à´ÎÓëÊý¾Ý¿â½»»»ÐÅÏ¢ÒÔͨ¹ýÉí·ÝÑéÖ¤£¬±È½ÏºÄ·Ñ·þÎñÆ÷×ÊÔ´¡£ ASP.NETÖÐÌṩÁËÁ¬½Ó³Ø(Connection Pool)¸ÄÉÆ´ò¿ªºÍ¹Ø±ÕÊý¾Ý¿â¶ÔÐÔÄܵÄÓ°Ï졣ϵͳ½«Óû§µÄÊý¾Ý¿âÁ¬½Ó·ÅÔÚÁ¬½Ó³ØÖУ¬ÐèҪʱȡ³ö£¬¹Ø±ÕʱÊÕ» ......