DSpace on Gmail worked now with following settings. Earlier I had opened up mail.server.port=465 and it was throwing an error as
"javax.mail.AuthenticationFailedException"
For setting up dspace with gmail click below link and disable security settings.It will work. https://www.google.com/settings/security/lesssecureapps
then also hash following line in dspace.cfg as setup below
#mail.server.port=465
restart the tomcat and it works and sends email from gmail.
##### Email settings ######
# SMTP mail server
mail.server = smtp.gmail.com
# SMTP mail server authentication username and password (if required)
mail.server.username =login@gmail.com
mail.server.password = password
# SMTP mail server alternate port (defaults to 25)
#mail.server.port = 465
# From address for mail
mail.from.address = login@gmail.com
# Name of a pre-configured Session object to be fetched from a directory.
# This overrides the Session settings above. If none can be found, then DSpace
# will use the above settings to create a Session.
#mail.session.name = Session
# Currently limited to one recipient!
feedback.recipient = login@gmail.com
# General site administration (Webmaster) e-mail
mail.admin = login@gmail.com
# Recipient for server errors and alerts
alert.recipient =
# Recipient for new user registration emails
registration.notify =
# Set the default mail character set. This may be overridden by providing a line
# inside the email template "charset:", otherwise this default is used.
mail.charset = UTF-8
# A comma-separated list of hostnames that are allowed to refer browsers to email forms.
# Default behaviour is to accept referrals only from dspace.hostname
mail.allowed.referrers = localhost
# Pass extra settings to the Java mail library. Comma-separated, equals sign between
# the key and the value. For example:
mail.extraproperties = mail.smtp.socketFactory.port=465, \
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
mail.smtp.socketFactory.fallback=false
# An option is added to disable the mailserver. By default, this property is set to false
# By setting mail.server.disabled = true, DSpace will not send out emails.
# It will instead log the subject of the email which should have been sent
# This is especially useful for development and test environments where production data is used when testing functionality.
#mail.server.disabled = false
"javax.mail.AuthenticationFailedException"
For setting up dspace with gmail click below link and disable security settings.It will work. https://www.google.com/settings/security/lesssecureapps
then also hash following line in dspace.cfg as setup below
#mail.server.port=465
restart the tomcat and it works and sends email from gmail.
##### Email settings ######
# SMTP mail server
mail.server = smtp.gmail.com
# SMTP mail server authentication username and password (if required)
mail.server.username =login@gmail.com
mail.server.password = password
# SMTP mail server alternate port (defaults to 25)
#mail.server.port = 465
# From address for mail
mail.from.address = login@gmail.com
# Name of a pre-configured Session object to be fetched from a directory.
# This overrides the Session settings above. If none can be found, then DSpace
# will use the above settings to create a Session.
#mail.session.name = Session
# Currently limited to one recipient!
feedback.recipient = login@gmail.com
# General site administration (Webmaster) e-mail
mail.admin = login@gmail.com
# Recipient for server errors and alerts
alert.recipient =
# Recipient for new user registration emails
registration.notify =
# Set the default mail character set. This may be overridden by providing a line
# inside the email template "charset:
mail.charset = UTF-8
# A comma-separated list of hostnames that are allowed to refer browsers to email forms.
# Default behaviour is to accept referrals only from dspace.hostname
mail.allowed.referrers = localhost
# Pass extra settings to the Java mail library. Comma-separated, equals sign between
# the key and the value. For example:
mail.extraproperties = mail.smtp.socketFactory.port=465, \
mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory, \
mail.smtp.socketFactory.fallback=false
# An option is added to disable the mailserver. By default, this property is set to false
# By setting mail.server.disabled = true, DSpace will not send out emails.
# It will instead log the subject of the email which should have been sent
# This is especially useful for development and test environments where production data is used when testing functionality.
#mail.server.disabled = false
This doesn't work for me?
ReplyDeleteit really worked for me....thaks
ReplyDelete