Every night these days, I have been learning to use cc.net. Other modules are well-configured, but the mail setting takes a long time. The reason is that there is no good description on the Internet, I will record my debugging process as follows (the second point should be carefully read for beginners like me ):
I. The configuration file must be correctly written and carefully written. If it is worse than me, I set the mailhostusername node twice, "*****" is not added with "QQ.com"; "QQ. CO "has a letter" M "missing, although this makes the configuration file verification work ccvalidator will not report an error, but it will certainly fail to run. I copy a copy of my local copy for your reference:
<Email mailport = "25" includedetails = "true" mailhostusername = "***** @ QQ.com" mailmailhostpassword = "*****" usessl = "false"> <from> ***** @ QQ.com </from> <mailhost> smtp.qq.com </mailhost> <users> <user name = "* 1" group = "Leader" address = "***** @ hotmail.com"/> <user name = "* 2" group = "teamleader" address = "***** @ 163.com"/> <user name =" * 3 "group =" buildmaster "address =" ***** @ 126.com"/> <user name = "* 4" group = "developers" address = "***** * @ QQ.com "/> </users> <Groups> <group name =" CTO "> <communications> <icationicationtype> fixed </icationicationtype> </communications> </group> <group name = "teamleader"> <communications> <icationicationtype> fixed </icationicationtype> </communications> </group> <group name = "developers"> <communications> <icationicationtype> failed </notificationtype> <notificationtype> fixed </notificationtype> </ications> </group> <group name = "buildmaster"> <communications> <icationicationtype> always </icationicationtype> </notifications> </group> </Groups> <converters> <regexconverter find = "{1} quot; replace = "@ QQ.com"/> </converters> <modifiernotificationtypes> <icationicationtype> failed </notificationtype> <icationicationtype> fixed </notificationtype> </jec> <subjectsettings> <subject buildresult = "stillbroken" value = "build is still broken for {ccnetproject}"/> </subjectsettings> <program files> <File> XSL \ header. XSL </File> <File> XSL \ compile. XSL </File> <File> XSL \ unittests. XSL </File> <File> XSL \ modifications. XSL </File> </Program Files> <attachments> <File> E: \ testspace \ ccnetgroup \ first \ other \ afile.txt </File> <File> relative.txt </File> </attachments> </Email>
2: Make sure to enable SMTP in the mailbox, because cc.net only supports SMTP, and most mailboxes are disabled by default. For this reason, ccvalidator will report an unused node exception; take QQ mail as an example. The settings are as follows: