1.2. Email Settings

By default, OJS uses PHP's mail() function to send email. You can configure OJS to use SMTP to send mail instead. To do so, you will need to uncomment and configure the relevant lines in config.inc.php, under the Email Settings subheading. Your final configuration might look something like the following:

; 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

You will have to find the appropriate SMTP information (server, port, authentication type, username and password) from your ISP.

To allow for notification of bounced emails (sent to the email address specified in Journal Setup 1.4) you will have to uncomment and enable the envelope_sender configuration option in config.inc.php; you may also want to provide a default email address.

; 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 = my_address@my_host.com

There are a number of other email options in config.inc.php but they are sufficiently explained in the configuration file, and are rarely, if ever, changed from the default.