i've installed ocs 2.0 and it ran fine until recently when a user notified me that the system is not sending out emails. there was an error:
- Code: Select all
Warning: mail() [function.mail <http://.../ocs/function.mail> ]: Failed to connect to mailserver at "192.168.1.59" port 2525, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\...\ocs\classes\core\String.inc.php on line 155
i've contacted the webhost, and they suggested changing the smtp address to point to a new ip address. so this is what i edited in the config.inc.php file:
- Code: Select all
;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;
[email]
; Use SMTP for sending mail instead of mail()
smtp = On
; SMTP server settings
smtp_server = 72.18.132.196
smtp_port = 25
; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = PLAIN
smtp_username = myusername
smtp_password = mypassword
; Allow envelope sender to be specified
; (may not be possible with some server configurations)
allow_envelope_sender = Off
; Enable attachments in the various "Send Email" pages.
; (Disabling here will not disable attachments on features that
; require them, e.g. attachment-based reviews)
enable_attachments = On
and now the ocs gives out a new error:
- Code: Select all
OJS SMTPMailer: Could not authenticate
let me know if i've done anything wrong; else please direct me on to what needs to be done next.
thanks
nahrizul
