Email SMTP configuration

Hello!

Is there a section within the dashboard settings that users can configure the SMTP mail server so the system can either use default php function of the hosting server as well the Office365 or Gmail smtp?

Personally, i`m looking to see if i can set my Office365 account using OAUTH 2.0 as the main SMTP so all the communications/notifications would go trough that instead.

Can you consider this for future updates, so for non-developers like me, would be much easier if the SMTP configuration will stay withing the dashboard.

Unless this options i already there, but i`m to blind to see it.

Thank you!

Hello @Mnezo !

As far as I know, there is no way to configure SMTP through the dashboard. The only way to achieve what you want is editing the system’s config file.

You don’t specify what OJS version you are using. For the 3.3 branch this would be the related documentation:
https://docs.pkp.sfu.ca/admin-guide/3.3/en/email

Best regards

Hello @hilongo, thanks for getting back to me.

i’m using latest OJS, but what i’m saying is more like a feature request, to allow us to configure the mail service withing the site settings in the dashboard, would be ideal.

As well, does the config file allows use of OAUTH 2.0 for office365? How you guy doing the O365 integration?

Hi there again … yeah, it would be great if we could configure that from the dashboard.

We don’t use Office365 but GMail, using the 'Apllication Password" feature recently added by them.

Our config file looks like this:

[email]

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

; SMTP server settings
; smtp_server = mail.example.com
; smtp_port = 25
smtp_server = ssl://smtp.gmail.com
smtp_port = 465

; Enable SMTP authentication
; Supported mechanisms: ssl, tls
smtp_auth = LOGIN
smtp_username = [our gmail username]
smtp_password = [GMail's Application password, not user's password]

Maybe it will be something similar for Office365?

Hope that helps

App passwords will go away from both gmail and o365 and different methods will be in place from what i`ve researched.

Appreciate the example config!

1 Like