Hi Support,
Thank you for developing such a great Open software.
I intalled OCS 2.3.6, Im checking the system by creating conferences. but when i’m trying to sending emails its not delivering. I edited the Email settings in config.TEMPLATE.inc.php file. Our SMTP Server is Office365. I tried with office365 settings and also tried with gmail smtp server settings. But both are not working. I would like to seek your kind assistance to solve the mail delivery issue.
Q1) Is OCS is compatible with Office365 for sending emails
Q2) From where i can find the error logs of OCS after i trying to send emails
Q3) Is it any service need to restart after edit the config.TEMPLATE.inc.php file
Thank you very much for your great support
Waiting for your reply.
Best Regards
Salih Kakkat
Hi,
I checked the error logs file inside /var/log/apache2 and i found that generates the follwing error when im trying to send each mail.
sh: 1: /usr/sbin/sendmail: not found
Could you please check and help me to find the config error
Thanks
Salih Kakkat
Hi @ka_salih,
I think you’re editing the wrong configuration file – it should be config.inc.php
, not config.TEMPLATE.inc.php
.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi Alec Smecher,
Thank you very much for your prompt reply.
I tried the following configuration in config.inc.php file as well
; 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
smtp_auth = PLAIN
smtp_username = “user@gmail.com”
smtp_password = “password”
But the same error logs inside /var/log/apache2 generates the follwing error when im trying to send each mail.
sh: 1: /usr/sbin/sendmail: not found
Kindly provide some information about the below queries also.
Q1) Is OCS is compatible with Office365 for sending emails (I’m just trying with gmail since i find the gmail configuration from your previous post)
Q2) From where i can find the error logs of OCS after i trying to send emails ( Is it the same error logs file which i’m looking inside /var/log/apache2 ? )
Q3) Is it any service need to restart after edit the config.inc.php file ?
Thank you again for your great support.
Regards
Salih Kakkat
1 Like
Hi Alec,
Is it required to configured email server in the OCS Server or only need to edit the config.inc.php file ?
Thanks
Salih Kakkat
Hi Alec Smecher,
Hope you are doing well.
I would like to add some updates regarding this discussion. Please note that I configured Sendmail in my server. After that i can send mail to the users email address (gmail, yahoo) but i could not send to microsoft office365 email addresses.
But i tried by edit the config.inc.php file’s SMTP settings, but it couldn’t help.
If you give some information about OCS mail flow/structure, it will be a great help to solve the real bottleneck.
Thank you very much for your valuable support and cooperation.
Best Regards
Salih Kakkat
Hi @ka_salih,
If you don’t have smtp
enabled, OCS uses PHP’s mail
function to deliver emails. This is implemented in the mail
function in lib/pkp/classes/core/String.inc.php
.
If SMTP is configured, then lib/pkp/classes/mail/SMTPMailer.inc.php
is used.
Regards,
Alec Smecher
Public Knowledge Project Team
Hi asmecher,
Thank you very much for your reply.
Our company mail system is office365, We would like to use office365 SMTP settings.I saw the php files. It will be great help if you provide a sample SMTP configuration ( which lines) for the file SMTPMailer,inc.php
It will be very helpful, if you give your mail address to share updates.
Regards
Salih Kakkat
Hi @ka_salih,
There’s an example configuration for Gmail in the wiki: http://pkp.sfu.ca/wiki/index.php?title=Using_gmail_SMTP
Regards,
Alec Smecher
Public Knowledge Project Team
Hello Alec,
Thanks for your reply. I found that i edited the wrong config file in wrong location for the mail settings.
After i change/edit OCS email config file ( cofig.inc.php) resides in location : /var/www/html , email are working fine.
Regards
Salih