Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-447

Email test script

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 1.6.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      1
    • Comments:
      2
    • Documentation Status:
      Complete or Committed

      Description

      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.lewis@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-help@myu.edu
      • Subject: DSpace test email
      • Server: smtp.gmail.com

      Error sending email:
      javax.mail.AuthenticationFailedException

        Attachments

          Activity

            People

            • Assignee:
              jtrimble Jeffrey Trimble
              Reporter:
              stuartlewis Stuart Lewis
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: