OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Sending mail through secure SMTP (ESMTP)

General inquiries about the PKP.

Moderators: jmacgreg, btbell, michael, bdgregg, vgabler, barbarah, John

Forum rules
Feel free to post general inquiries about the PKP Here. We'll also post notes of interest from time to time. You may also want to check out the PKP blog.

Sending mail through secure SMTP (ESMTP)

Postby hagarridoa » Mon Jan 23, 2012 8:11 am

OJS as configured in the parameters to send secure mail using ESMTP, if you wanted to use TLS or SSL.

Authentication mechanisms are currently supported OJS (PLAIN | LOGIN | CRAM-MD5 | DIGEST-MD5)

There is no such function in the SMTPMailer.inc.php

This is the current configuration of our server:
;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;

[email]
; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = correo.urosario.edu.co
smtp_port = 587

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = PLAIN
smtp_username = <usuario>
smtp_password = <contraseña >


I appreciate any help with this
=========================================================================


Envío de corres a través de SMTP seguro (ESMTP)

Como se configura en OJS los parámetros para poder enviar correo seguro utilizando ESMTP, si se quisiera utilizar TLS o SSL.
Los mecanismos de autenticación que actualmente soporta OJS son (PLAIN | LOGIN | CRAM-MD5 | DIGEST-MD5)
No existe esta función en el archivo SMTPMailer.inc.php
hagarridoa
 
Posts: 1
Joined: Mon Jan 23, 2012 7:26 am
Location: Bogota, Colombia

Re: Sending mail through secure SMTP (ESMTP)

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

Hi hagarridoa,

For TLS, you may be able to use PHP's tls:// wrapper. OJS uses the fsockopen function to connect to an SMTP server, so you can use the wrappers documented at http://uk3.php.net/manual/en/transports.inet.php. OJS does support at least some subset of ESMTP -- for example, the EHLO command. I don't have an environment in which to test this at the moment, so please report back.

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

Re: Sending mail through secure SMTP (ESMTP)

Postby jorgelpolanco » Thu Oct 31, 2013 10:58 am

¡Hi hagarridoa and Alec!

I also needed to set SMTP with TLS security and solved it as follows:

1. I used Gmail but Gmail does not include personal mail but uses a single email.

2. I used this configuration:

[email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = tls://smtp.ucr.ac.cr
smtp_port = 465

Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = PLAIN
smtp_username = <username>
smtp_password = <password>

¡and this works!

Regards,
Jorge Polanco
Universidad de Costa Rica
jorgelpolanco
 
Posts: 1
Joined: Thu Oct 31, 2013 10:46 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest