You are viewing the PKP Support Forum | PKP Home Wiki

Add TLS Support for SMTP

Are you an Editor, Author, or Journal Manager in need of help? Want to talk to us about workflow issues? This is your forum.

Moderators: jmacgreg, michael, vgabler, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Add TLS Support for SMTP

Postby bardoskar » Wed Aug 03, 2011 4:18 am


I have tryed to add TLS Support for my SMTP configuration but i have not. I tryed a lot of things for that but there is no success. Also there are not any documentations for SMTP TLS Support. How can i add this code. For example i added code in


Code: Select all
function authenticate_tls() {
      if (!$this->send('STARTTLS'))
         return false;
      if (!$this->receive('220'))
         return false;
      stream_socket_enable_crypto($this->socket, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
      if (!$this->send('EHLO', $this->server))
         return false;

and added a case

Code: Select all
   case 'TLS':
      return $this->authenticate_tls();

i opened congfig.inc.php and add

Code: Select all
; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = TLS
smtp_username = my_username
smtp_password = my_password

I could not authenticate. Have u any idea about this problem ?
Posts: 1
Joined: Wed Aug 03, 2011 4:04 am

Re: Add TLS Support for SMTP

Postby asmecher » Tue Jan 31, 2012 2:17 pm

Hi all,

See http://pkp.sfu.ca/support/forum/viewtopic.php?f=1&t=8231.

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Return to OJS Editorial Support and Discussion

Who is online

Users browsing this forum: Google [Bot] and 1 guest