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

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.
Posts: 1
Joined: Wed Aug 03, 2011 4:04 am

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 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: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: Add TLS Support for SMTP

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

Hi all,


Alec Smecher
Public Knowledge Project Team

Return to “OJS Editorial Support and Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests