Ojs nao esta enviando e-mail

Olá, bom dia pessoal.

Também estou com problemas de não conseguir enviar e-mails. Sou novo no OJS, nossa aplicação fica hospedada no HostGator a aplicação já está no ar e eu já tentei configurar o arquivo “config.inc.php” para resolver os e-mails e mesmo assim não consigo dispará-los.

Seguem as configurações de e-mail.

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

[email]

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

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

; Enable SMTP authentication
;Supported mechanisms: ssl, tls
smtp_auth = tls
smtp_username = “novos.desafios@iescfag.edu.br”
smtp_password = “”

; Enable suppressing verification of SMTP certificate in PHPMailer
; Note: this is not recommended per PHPMailer documentation
; smtp_suppress_cert_check = On

; 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 = novosdesafios.inf.br

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

; Force a DMARC compliant from header (RFC5322.From)
; If any of your users have email addresses in domains not under your control
; you may need to set this to be compliant with DMARC policies published by
; those 3rd party domains.
; Setting this will move the users address into the reply-to field and the
; from field wil be rewritten with the default_envelope_sender.
; To use this you must set force_default_enveloper_sender = On and
; default_envelope_sender must be set to a valid address in a domain you own.
; force_dmarc_compliant_from = Off

; The display name to use with a DMARC compliant from header
; By default the DMARC compliant from will have an empty name but this can
; be changed by adding a text here.
; You can use ‘%n’ to insert the users name from the original from header
; and ‘%s’ to insert the localized sitename.
; dmarc_compliant_from_displayname = ‘%n via %s’

; 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-privileged 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

OBS: Só removi a senha antes de enviar aqui no fórum.

Alguém poderia me ajudar?

Olá @mateus_menezes

Você chegou a olhar o log de erros do teu site? Pode haver alguma mensagem de erro sobre o envio por SMTP.

Caso você tenha acesso por terminal onde roda tua instalação e o app nc instalado, você pode testar a conexão rodando:

nc -zv smtp.office365.com 587

Isso deve retornar

Connection to smtp.office365.com 11 587 port [tcp/urd] succeeded! 

Abraço

Israel Cefrin
PKP Team

1 curtida

Olá @israelcefrin, bom dia e obrigado por seu tempo.

Eu estou usando a revista no Hostgator, não consegui encontrar o local do log.

Acredito que precise seguir as instruções que eles fornecem aqui:

https://www.hostgator.com/help/article/can-i-access-my-apache-log-files

Um abraço
Israel Cefrin
PKP Team

Boa tarde, encontrei um arquivo log aqui, porém, não achei nada referido a tentativa envios via smtp.

Achei somente essa informação que pode ter haver com e-mail “HTTP-Client/1.0” mail.novosdesafios.inf.br ".

Você já chegou a tentar a enviar um email para você mesmo pelo sistema?
Apenas para verificar que nao está funcionando e então olhar no log?

Um abraço
Israel Cefrin
PKP Team

Olá, cheguei sim a tentar enviar.

Encontro esse erro “Houve um problema ao enviar uma mensagem de e-mail. Por favor tente mais tarde, ou contate o administrador do sistema.”.

Como faço para lhe encaminha o arquivo log? Para não colar todas as linhas aqui.