Using gmail SMTP

From PKP Wiki
Revision as of 15:15, 25 February 2014 by Alec (Talk | contribs) (Add note about application-specific passwords)

Jump to: navigation, search

To use gmail SMTP to send email from OJS system. You can use the following setting in

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

; SMTP server settings
smtp_server = "ssl://"
smtp_port = 465

; Enable SMTP authentication
smtp_auth = PLAIN
smtp_username = ""
smtp_password = "password"

Note that using gmail to deliver email will result in all emails being addressed "from" your gmail account, rather than the OJS user who initiated the email. You may wish to consider patching to allow existing installs to include a configurable prefix in email templates explaining that the message is being sent on behalf of your journal, press, or conference.

Note that you may have to additionally configure application-specific passwords in gmail; see for details.