I have a configuration like that
[email]
; Default method to send emails
; Available options: sendmail, smtp, log, phpmailer
default = sendmail
; Path to the sendmail, -bs argument is for using SMTP protocol
sendmail_path = "/usr/sbin/sendmail -bs"
; Use SMTP for sending mail instead of mail()
; smtp = On
; SMTP server settings
; smtp_server = mail.hrdbd.info
; smtp_port = 465
; Enable SMTP authentication
; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure)
; smtp_auth = ssl
; smtp_username = help@hrdbd.info
; smtp_password = (removed)
; Enable suppressing SSL/TLS peer verification by SMTP transports
; Note: this is not recommended for security reasons
; smtp_suppress_cert_check = On
; Allow envelope sender to be specified
; (may not be possible with some server configurations)
; allow_envelope_sender = on
but the configuration still not working in ojs latest version. Can anyone help me to do this.
Thanks advanced
Monir
Hi @monir112761,
Please be careful not to post passwords to public forums! I’ve removed the password from your post, but please change it ASAP.
Any line in the configuration file beginning with a ;
is treated as a comment. If you want those lines to take effect, remove the semicolon at the start of the line.
Regards,
Alec Smecher
Public Knowledge Project Team
Thanks for your cooperation.
Hi everyone…
First of all you should remove ; at beginning of each line related to config…
Sending mail is a serious problem for the most user using OJS. I solved this problem using SMTP gmail configuration and like to share my solution.
First Step:
Active SMTP gmail account
- In your Google/Gmail account, go to Settings
- Select the ‘Forwarding and POP/IMAP’ settings
- Under the ‘IMAP access’ section, toggle on the option to ‘Enable IMAP.’
- Then, on the right side (under your picture account) click on “manage your google account”
- Select security tab and active 2-step verification.
- Click on App Password, if you can find it click the following link: https://myaccount.google.com/apppasswords
- Set password and in the "Select the app " section select “other (custom name)” item and set a favorite name for example: “SMTP”;
- You will receive a password. keep this password for SMTP configuration on OJS.
Second step:
Setup OJS Config File
-
Open config.inc.php file.
-
Set these configurations
default = smtp
smtp = On
smtp_server = smtp.gmail.com
smtp_port = 465
smtp_auth = ssl
smtp_username = [example@gmail.com (account](mailto:example@gmail.com%20(account) which used in the first step)
smtp_password = your_receive_password (password which is received in the first step)
if you have own SMTP server, change gmail with your domain name.
This topic was automatically closed after 14 days. New replies are no longer allowed.