OJS email not sent

My journal can’t send email, I’ve tried changing config.inc.php and tried various settings about it … but in the end it still didn’t change anything about it…

[email]

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

; SMTP server settings
; smtp_server = ssl://smtp.gmail.com
; smtp_port = 465

; Force the default envelope sender (if present)
; This is useful if setting up a site-wide noreply address
; The reply-to field will be set with the reply-to or from address.
; force_default_envelope_sender = Off

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
; smtp_auth = PLAIN
; smtp_username = myemail@gmail.com
; smtp_password = mypassword

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

; Default envelope sender to use if none is specified elsewhere
; default_envelope_sender = my_address@my_host.com

; 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 OJS.
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

Hope you can help, Thank you

Hi @Andhika_Rh,

The lines beginning with ; are considered to be commented out; if you want to use SMTP, you’ll need to uncomment those lines.

Regards,
Alec Smecher
Public Knowledge Project Team

you mean to uncomment the line like this right?

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

[email]

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

; SMTP server settings
smtp_server = mail.bright-journal.org
smtp_port = 465

; Force the default envelope sender (if present)
; This is useful if setting up a site-wide noreply address
; The reply-to field will be set with the reply-to or from address.
force_default_envelope_sender = Off

; Enable SMTP authentication
Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = ssl
smtp_username = “myemail@bright-journal.org
smtp_password = “mypassword”

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

; Default envelope sender to use if none is specified elsewhere
default_envelope_sender = ijiis@bright-journal.org

; 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 OJS.
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

I have tried it but found no changes, even when the user creates an account there is no welcome email

Hi @Andhika_Rh

Please uncomment the line;

it should be;

smtp = On

Also, if you want to use default envelope sender; you need to enable it.

allow_envelope_sender = On

Regards,

Hi ,

If you use google email, you must enable the Allow less secure app
less secure app

Regards

it still wont work until now, i have tried many setting and editing my config many times

but also i got this on error log every time email trying to send

OJS SMTPMailer: Did not receive expected 220

anyone knows what that mean?

Regards,
Dika