Email test script ----------------- Key: DS-447 URL: http://jira.dspace.org/jira/browse/DS-447 Project: DSpace 1.x Issue Type: New Feature Reporter: Stuart Lewis Priority: Minor Attachments: email-test.patch
This patch adds a main() method to Email.java to send a test email. If the email cannot be sent, the error message is shown. This allows the email sending to be tested earlier during the installation, rather than waiting for problems to show later on (e.g. when submitting new items). This will help new users who get confused why submissions don't work, and allows us to provide a method for the admins to report the error message more easily. Documentation (and messages in build.xml) will need updating to tell the user to run this script. [dspace]/bin/dsrun org.dspace.core.Email (needs an entry in launcher.xml if committed to svn) /dspace/bin/dsrun org.dspace.core.Email About to send test email: - To: s.le...@auckland.ac.nz - Subject: DSpace test email - Server: smtp.gmail.com Email sent successfully! or /dspace/bin/dsrun org.dspace.core.Email About to send test email: - To: dspace-h...@myu.edu - Subject: DSpace test email - Server: smtp.gmail.com Error sending email: javax.mail.AuthenticationFailedException -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.dspace.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel