[ 
http://jira.dspace.org/jira/browse/DS-447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stuart Lewis reassigned DS-447:
-------------------------------

    Assignee: Jeffrey Trimble  (was: Stuart Lewis)

Hi Jeff,

This is a new script that needs documentation:

[dspace]/bin/dspace test-email

It attempts to send a test email to the email address that is set in dspace.cfg 
(mail.admin). If it fails, it says why, and says to refer to the DSpace 
documentation. We should probably just refer them to dspace-tech in the manual.

It would be good to put this script in as part of the post-installation tasks, 
to ensure that the email server settings are correct.

Cheers,


Stuart

> Email test script
> -----------------
>
>                 Key: DS-447
>                 URL: http://jira.dspace.org/jira/browse/DS-447
>             Project: DSpace 1.x
>          Issue Type: New Feature
>          Components: DSpace API
>            Reporter: Stuart Lewis
>            Assignee: Jeffrey Trimble
>            Priority: Minor
>             Fix For: 1.6.0
>
>         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

Reply via email to