Óʼþ·¢ËͿؼþjmailʹÓ÷½·¨Ö®ASP.NETʾÀý
×¼±¸¹¤×÷ºÍWinForm³ÌÐòÖÐÓ¦ÓõIJ¶à£º
1.Ê×ÏÈÏÂÔØjmail¿Ø¼þ£¬È»ºó°²×°£¨Æäʵ²»°²×°Ò²ÐУ¬Ö»ÒªÄãÄÜÕÒµ½jmail.dllÎļþ£¬È»ºó×¢²á¸ÃdllÎļþ¡£ÕâÀï²»Ö§³ÖÉÏ´«¸½¼þ£¬·ñÔòÎҾͰÑÎÒÏÂÔصĴ«ÉÏÀ´ÁË£©£¬¸½ÉÏÊÖ¹¤×¢²áËüµÄÅú´¦Àí£º
echo off
copy jmail.dll C:\windows\system32
regsvr32 jmail.dll
echo Ö´ÐÐÍê±Ï!
pause
2.ʹÓÃtlbimp c:\Program Files\Dimac\w3JMail4\jmail.dll /out:myJmail.dll /namespace:myJmailÉú³ÉmyJmail.dllºó£¬copyµ½webµÄ¸ùĿ¼µÄbinĿ¼¡£ÔÚASP.NetÒ³ÃæÖУ¬ÓÃusing myjmail;·½·¨ÒýÓã¬Àý³ÌÈçÏ£º
protected void Page_Load(object sender, EventArgs e)
{
myjmail.Message jmail = new myjmail.Message();
DateTime t=DateTime.Now;
string subject = "jmail test from web";
string body= "<center>jmail test from web<br>test</center>"; //tbContent.Text.Replace("\n","<br>");
string fromemail="xxxx@e165.com";
string toEmail= "xxxx@e165.com";
//silentÊôÐÔ£ºÈç¹ûÉèÖÃΪtrue,jmail²»»áÅ׳öÀýÍâ´íÎó. jmail. send( () »á¸ù¾Ý²Ù×÷½á¹û·µ»Øtrue»òfalse
jmail.Silent = true;
//jmail´´½¨µÄÈÕÖ¾£¬Ç°ÌálogingÊôÐÔÉèÖÃΪtrue
//jmail.Logging=true;
//×Ö·û¼¯£¬È±Ê¡Îª"us-ascii"
jmail.Charset="gb2312";
//ÐżþµÄcontentype. ȱʡÊÇ"text/plain"£© : ×Ö·û´®Èç¹ûÄãÒÔhtml¸ñʽ·¢ËÍÓʼþ, ¸ÄΪ"text/html"¼´¿É¡£
jmail.ContentType="text/html";
//Ìí¼ÓÊÕ¼þÈË
jmail.AddRecipient(toEmail,"","");
jmail.from = fromemail;
//·¢¼þÈËÓʼþÓû§Ãû
jmail.MailServerUserName="xxxx" ;
//·¢¼þÈËÓʼþÃÜÂë
jmail.MailServerPassWord="xxxx" ;
//ÉèÖÃÓʼþ±êÌâ
jmail.Subject=subject;
//ÓʼþÌí¼Ó¸½¼þ,(
Ïà¹ØÎĵµ£º
1
<asp:UpdatePanelID="UpdatePanel1"
UpdateMode="Conditional"
runat="server">
<ContentTemplate>
<asp:Button ID="Button1"
......
ºÚɫ΢Цѧasp.net£¨Ðò£©
±¾ÈËÊǸö²ËÄñ£¬´ÓʵÄÖ°ÒµÔÚÍøÕ¾ºǫ́Ìí¼ÓÎÄÕµģ¬ÎÒ¶Á³ÉÈË´óѧÔÚÄÇÀïÖ»ÖªµÀÓÐCÓïÑÔÕâÖÖ¶«Î÷£¬¶ÔÓÚÀïÃæµÄÄÚÈÝÒ»¸Å²»Öª£¬ºóÀ´²Î¼Ó×Ô¿¼²ÅÖªµÀÁËselectÓïÑÔ¡£Í¨¹ýÇ×ÆÝ°ïÎÒ½éÉܵ½×öÍøÕ¾µÄ²¿ÃÅ£¬ÓÉÓÚ¹¤×÷ÐèÒª²Å½Ó´¥ÁËHTMLÓïÑÔ£¬ºóÀ´ÂýÂýÏÐÏÂÀ´ÁË£¬¿´µ½Í¬ÊÂASP×ö ......
¹ýÈ¥µÄ¼¸ÄêÀºÜ¶àÈËÒªÇóASP.NETµÄÒ»¼þÊÂÇé¾ÍÊǶÔʹÓûùÓÚmodel-view-controller£¨Ä£ÐÍ-ÊÓͼ-¿ØÖÆÆ÷,¼ò³ÆMVC£©¼Ü¹¹À´¿ª·¢webÓ¦ÓõÄÄÚÖÃÖ§³Ö¡£
ÉϸöÖÜÄ©ÔÚAustin¾ÙÐеÄAlt.NET´ó»áÉÏ£¬ÎÒÊ״ζÔÎÒµÄÍŶÓÕýÔÚ¿ª·¢µÄÐÂASP.NET MVC ¿ò¼Ü×÷ÁËÒ»¸ö¹«¿ªµÄÑÝʾ¡£Äã¿ÉÒÔÔÚScott HanselmanÕâÀïµÄ²©¿Í
ÉϹۿ´ÎҵĽ²×ùµÄ¼Ïñ¡£
ÎÒÃ ......
Èç¹ûÓ¦ÓóÌÐòʹÓà ASP.NET ³ÉÔ±×ʸñϵͳÀ´¶ÔÓû§½øÐÐÉí·ÝÑéÖ¤£¬ÔòÄú¿ÉÒÔʹÓà CreateUserWizard ¿Ø¼þÀ´ÔÊÐíÓû§ÔÚ³ÉÔ±×ʸñϵͳÖд´½¨Ò»¸öеÄÓû§ÏCreateUserWizard ¿Ø¼þ»¹¿ÉÒÔ¹©¹ÜÀíÔ±ÓÃÀ´´´½¨ÐÂÓû§£©¡£
1¡¢´´½¨»ò±à¼Ò»¸ö²»ÐèҪȨÏÞµÄ ASP.NET ÍøÒ³¡£
2¡¢Ê¹ÓÃÏÂà ......
ͨ¹ýÔÚÒ³ÉÏ°üº¬ LoginView ¿Ø¼þ¿ÉÒÔÏòÄäÃûÓû§ºÍµÇ¼£¨¾¹ýÉí·ÝÑéÖ¤µÄ£©Óû§ÏÔʾ²»Í¬µÄÐÅÏ¢¡£LoginView ¿Ø¼þ°üº¬Á½¸öÄ£°å£ºÒ»¸öÓÃÓÚÏòÄäÃûÓû§ÏÔʾÐÅÏ¢£¬ÁíÒ»¸öÓÃÓÚÏòµÇ¼Óû§ÏÔʾÐÅÏ¢¡££¨»¹¿ÉÒÔʹÓà RoleGroups ÊôÐÔ°üº¬»ùÓÚ½ÇÉ«Ãû³ÆµÄÄ£°å¡££©¸Ã¿Ø¼þ×Ô¶¯È·¶¨Óû§ÊÇ·ñ¾¹ýÉí·ÝÑéÖ¤²¢³ÊÏÖ ......