530 authentication required
Com. Sun. Mail. SMTP. smtpsendfailedexception: 530 authentication required
At com. Sun. Mail. SMTP. smtptransport. issuesendcommand (smtptransport. Java: 1388)
At com. Sun. Mail. SMTP. smtptransport. mailfrom (smtptransport. Java: 959)
At com. Sun. Mail. SMTP. smtptransport. sendmessage (smtptransport. Java: 583)
At com. Email. sendtextmail. Send (sendtextmail. Java: 112)
At org. Apache. jsp. sendmail_jsp. _ jspservice (sendmail_jsp.java: 71)
At org. Apache. Jasper. runtime. httpjspbase. Service (httpjspbase. Java: 70)
At javax. servlet. http. httpservlet. Service (httpservlet. Java: 803)
At org. Apache. Jasper. servlet. jspservletwrapper. Service (jspservletwrapper. Java: 393)
At org. Apache. Jasper. servlet. jspservlet. servicejspfile (jspservlet. Java: 320)
At org. Apache. Jasper. servlet. jspservlet. Service (jspservlet. Java: 266)
At javax. servlet. http. httpservlet. Service (httpservlet. Java: 803)
At org. Apache. Catalina. Core. applicationfilterchain. internaldofilter (applicationfilterchain. Java: 290)
At org. Apache. Catalina. Core. applicationfilterchain. dofilter (applicationfilterchain. Java: 206)
At org. Apache. Catalina. Core. standardwrappervalve. Invoke (standardwrappervalve. Java: 230)
At org. Apache. Catalina. Core. standardcontextvalve. Invoke (standardcontextvalve. Java: 175)
At org. Apache. Catalina. Core. standardhostvalve. Invoke (standardhostvalve. Java: 128)
At org. Apache. Catalina. Valves. errorreportvalve. Invoke (errorreportvalve. Java: 104)
At org. Apache. Catalina. Core. standardenginevalve. Invoke (standardenginevalve. Java: 109)
At org. Apache. Catalina. connector. coyoteadapter. Service (coyoteadapter. Java: 261)
At org. Apache. Coyote. http11.http11processor. Process (http11processor. Java: 844)
At org. Apache. Coyote. http11.http11protocol $ http11connectionhandler. Process (http11protocol. Java: 581)
At org.apache.tomcat.util.net. jioendpoint $ worker. Run (jioendpoint. Java: 447)
At java. Lang. thread. Run (unknown source)
When Using JSP to send Sina mail, the following exception is always reported. Later, you only need to modify the information as follows:
1 properties props = system. getproperties (); 2 // specify SMTP Server 3 props. put ("mail. SMTP. host ", smtphost); 4 props. put ("mail. SMTP. auth "," true "); // true must be enclosed by quotation marks
Enclose true with quotation marks.