Not receiving email to reset a forgotten password

HI Team,

I have lost my admin user password and while I am trying to reset the password its not working.
Even for other users the password recovery function is not working.

Please help me to resolve this issue in OCS.

Thanks
Manoj

Hi,
You should check the Email Settings section in config.inc.php file and set it according to your web hosting service provider.

Hi Alirezaaa,

I have updated the mail setting but still the problem exist. Please find the below code for your reference.

;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;

[email]

Use SMTP for sending mail instead of mail()
smtp = On

SMTP server settings
smtp_server = mail.ocs.example.org
smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
; smtp_auth = PLAIN
; smtp_username = username
; smtp_password = password

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
; allow_envelope_sender = Off

; Enable attachments in the various “Send Email” pages.
; (Disabling here will not disable attachments on features that
; require them, e.g. attachment-based reviews)
enable_attachments = On

; Amount of time required between attempts to send non-editorial emails
; in seconds. This can be used to help prevent email relaying via OCS.
time_between_emails = 3600

; Maximum number of recipients that can be included in a single email
; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
max_recipients = 10

; If enabled, email addresses must be validated before login is possible.
require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted
validation_timeout = 14

Hi,
Refer to OCS manual. you have uncommented the wrong lines. semicolons at the beginning of the lines are very important.

you should either use PHP mail on the server so the setting would be:

[email]

; Use SMTP for sending mail instead of mail()
; smtp = On

; SMTP server settings
; smtp_server = mail.example.com
; smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
; smtp_auth = PLAIN
; smtp_username = username
; smtp_password = password

or use an external mail server:

[email]

; Use SMTP for sending mail instead of mail()
 smtp = On

; SMTP server settings
 smtp_server = mail.example.com
 smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
 smtp_auth = PLAIN
 smtp_username = username
 smtp_password = password

ask your web hosting service provider about whether your server has Mail enabled and you have access to it; or use an external mail server, and add it’s address, port, uesrname and password.

Hi,

Yes, our server has mail enabled and I tried to include the Smtp mail details but still I didn’t received email for password recovery.

Thanks
Manoj

Hi Alirezaaa,

I have tried to setup email using external mail server but still its not working, any clue?

Below I enclosed the code for your reference

[email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = mail.ocs.org
smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = PLAIN
smtp_username = support@ocs.org
smtp_password = ********

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
; allow_envelope_sender = Off

; Enable attachments in the various “Send Email” pages.
; (Disabling here will not disable attachments on features that
; require them, e.g. attachment-based reviews)
enable_attachments = On

; Amount of time required between attempts to send non-editorial emails
; in seconds. This can be used to help prevent email relaying via OCS.
time_between_emails = 3600

; Maximum number of recipients that can be included in a single email
; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
max_recipients = 10

; If enabled, email addresses must be validated before login is possible.
require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted
validation_timeout = 14

Hi Alirezaaa,

I have tried to setup email using external mail server but still its not working, any clue?

Below I enclosed the code for your reference

[email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = mail.ocs.org
smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = PLAIN
smtp_username = support@ocs.org
smtp_password = ********

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
; allow_envelope_sender = Off

; Enable attachments in the various “Send Email” pages.
; (Disabling here will not disable attachments on features that
; require them, e.g. attachment-based reviews)
enable_attachments = On

; Amount of time required between attempts to send non-editorial emails
; in seconds. This can be used to help prevent email relaying via OCS.
time_between_emails = 3600

; Maximum number of recipients that can be included in a single email
; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
max_recipients = 10

; If enabled, email addresses must be validated before login is possible.
require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted
validation_timeout = 14

Hi
make sure that your server has internet access and whether the mail server accepts connections from this server.
you can usu Gmail SMTP server and check this.

Using gmail SMTP
Using SMTP for sending emails in OJS

Hi Allirezaaa,

Thanks for your replay, I tried using gmail SMTP but I received an email in my gmail regarding access is blocked for this app because its less secure. Any suggestion please?

Thanks
Manoj

have you enabled “IMAP Access” and Third-Party Mail Clients in your gmail account in order to “Allow less secure apps”?
link