Email Setup Issue - OJS 3

Hello eveyone
This is my first post here. I have been struggling with setting up gmail email account. I have OJS 3 installed. I have changed the config.inc.php file as follows. However, it does not send any email.


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

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

; Enable SMTP authentication
; Supported mechanisms: ssl, tls
smtp_auth = PLAIN
smtp_username = “ber@imsciences.edu.pk”
smtp_password = “XXXXXX”

Then I tried another email that is provided by the hosting company. The set up is given below:

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

; SMTP server settings
smtp_server = “mail.bereview.pk”
smtp_port = 465

; Enable SMTP authentication
; Supported mechanisms: ssl, tls
smtp_auth = ssl
smtp_username = editor@bereview.pk
smtp_password = XXXXXXX

This works. However, there are two problems here.

  1. The system will still use the email of the user who is signed in. For example, see the following system message. What confuses me is that why these two emails are given here, why not just the email I set in the config.php file “From Address: ber@imsciences.edu.pk
    Sender: editor@bereview.pk”

Event: success success
User: bereview
Domain: bereview.pk
From Address: ber@imsciences.edu.pk
Sender: editor@bereview.pk
Sent Time: Nov 2, 2017 10:49:22 PM
Sender Host: bereview.pk
Sender IP: 23.226.129.107
Authentication: dovecot_login
Spam Score:
Recipient: assignments.afraz@gmail.com
Delivery User: -system-
Delivery Domain:
Delivered To: assignments.afraz@gmail.com
Router: send_via_mailchannels
Transport: mailchannels_smtp
Out Time: Nov 2, 2017 10:49:22 PM
ID: 1eAUqj-000t3w-QW
Delivery Host: smtp.mailchannels.net
Delivery IP: 52.27.45.168
Size: 3.39 KB
Result: Accepted

  1. The second problem is that all emails are declared as spam by hotmail and gmail.

I really appreciate your cooperation.

As for spam issue, take a look at this thread: