OJS 2.4.8 Mail Error

No e-mail is sent.
Error: (Error.log)
OJS SMTPMailer: Did not receive expected 250 (2)

Ojs 2.4.8

OS platform Linux
PHP 5.6.36-1+ubuntu16.04.1+deb.sury.org+1 (cli)
Apache version Apache/2.4.18 (Ubuntu)
Database driver mysqli
Database server version 5.7.22-0ubuntu0.16.04.1

Hi @hcemkucuk,

This means your SMTP connection isn’t working. Check your config.inc.php SMTP credentials and details to make sure they’re correct for your server.

Regards,
Alec Smecher
Public Knowledge Project Team

These settings are correct. It was working on OJS 3.

[email]

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

; SMTP server settings
smtp_server = smtp.office365.com
smtp_port = 587

; 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 = tls ==> (Other variations have been tried. Not working.)
smtp_username = iletisimdergisi@kastamonu.edu.tr
smtp_password = ******* ==> (The password was checked. Right.)

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

; Default envelope sender to use if none is specified elsewhere
default_envelope_sender = iletisimdergisi@kastamonu.edu.tr

; 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

Hi @hcemkucuk,

OJS 3.x uses the PHPMailer library for its SMTP support. OJS 2.x uses its own SMTP code. I can’t comment on specific setup needs for Office365, but you might check out this thread: How use office365 with ojs 2.4.8?

Regards,
Alec Smecher
Public Knowledge Project Team

I understand. Thank you. Good work.