Dear Ayuka,

here is the snippet from my local.cfg

#######################
# EMAIL CONFIGURATION #
#######################

# SMTP mail server (allows DSpace to send email notifications)
mail.server = smtp.gmail.com

# SMTP mail server authentication username and password (if required)
mail.server.username = [email protected]
mail.server.password = yyy

# SMTP mail server alternate port (defaults to 25)
mail.server.port = 465

# From address for mail
# All mail from the DSpace site will use this 'from' address
mail.from.address = [email protected]

# When feedback is submitted via the Feedback form, it is sent to this
address
# Currently limited to one recipient!
feedback.recipient = [email protected]

# General site administration (Webmaster) e-mail
mail.admin = [email protected]

# Recipient for server errors and alerts (defaults to mail.admin)
#alert.recipient = ${mail.admin}

# Recipient for new user registration emails (defaults to unspecified)
#registration.notify =
mail.extraproperites = mail.smtp.starttls.enable.true

########################



root@DSpace:/home/dspace/dspace-install/bin# ./dspace test-email

About to send test email:
 - To: [email protected]
 - Subject: DSpace test email
 - Server: smtp.gmail.com

Error sending email:
 - Error: javax.mail.SendFailedException: Send failure
(javax.mail.MessagingException: Could not connect to SMTP host:
smtp.gmail.com, port: 465, response: -1)

Please see the DSpace documentation for assistance.



root@DSpace:/home/dspace/dspace-install/bin#


Many thanks for your help.
Best,
Ashim

On Sat, 7 Mar 2020 at 21:57, Ayuka Phanuel <[email protected]> wrote:

> And you have to add this to your local.cfg
> mail.extraproperties = mail.smtp.starttls.enable=true
>
>
>
> On Sat, Mar 7, 2020 at 4:38 PM Ayuka Phanuel <[email protected]>
> wrote:
>
>> While using port 587 ?
>>
>>

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAGEJAoF--Rzcq3gMa7njMj1SgbMYvZbFDqBCsQTq2RCKUeQSvA%40mail.gmail.com.

Reply via email to