OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Email configuration

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Email configuration

Postby JoannaBG » Fri May 02, 2014 9:10 am

Hi,
I have read several post about configuraicion mail when using gmail.
I have problems with the shipping (not working), do not understand why if you use the settings I show below. eh changed the port from 465 to 587 and does not work with either.
any idea what's wrong?

;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;
[email]

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

; SMTP server settings
smtp_server = smtp.gmail.com
smtp_port = 587

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = PLAIN
smtp_username = username@gmail.com (Here I use my real email)
smtp_password = mypassword (Here I use my real password)

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
allow_envelope_sender = On

; Default envelope sender to use if none is specified elsewhere
; default_envelope_sender = my_address@my_host.com

; 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

; Amount of time required between attempts to send non-editorial emails
; in seconds. This can be used to help prevent email relaying via OJS.
time_between_emails = 3600

; Maximum number of recipients that can be included in a single email
; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
max_recipients = 10

; If enabled, email addresses must be validated before login is possible.
require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted
validation_timeout = 14[/i][/b][/b][/i][/i][/i][/b][/i]
JoannaBG
 
Posts: 15
Joined: Fri Apr 25, 2014 4:19 pm

Re: Email configuration

Postby asmecher » Fri May 02, 2014 9:57 am

Hi Joanna,

Try the configuration in our wiki.

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

Re: Email configuration

Postby JoannaBG » Fri May 02, 2014 10:21 am

Hi,
Yes, I tried to do that but does not work.
but I have no error messages, just not receiving emails.
JoannaBG
 
Posts: 15
Joined: Fri Apr 25, 2014 4:19 pm

Re: Email configuration

Postby asmecher » Fri May 02, 2014 12:24 pm

Hi Joanna,

Next steps for debugging will be to see where/whether the email send is hitting problems. This is implemented in lib/pkp/classes/mail/SMTPMailer.inc.php in the "mail" function.

As you can see there, most error conditions should result in an error message (e.g. "Did not receive expected 220"). If you're not hitting those, there are two major cases I can see:
  • The connection can't be established at all; see the "connect" function. This could happen e.g. if your PHP doesn't support TLS.
  • The mail is successfully delivered to gmail, but gmail doesn't subsequently deliver it. This will be harder to debug because you won't have any feedback. You can determine whether this is happening by dropping an error_log call into the mail(...) function, just before disconnect, to record that the message was delivered to gmail.
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9050
Joined: Wed Aug 10, 2005 12:56 pm

Re: Email configuration

Postby JoannaBG » Fri May 02, 2014 4:36 pm

Hi,
Thanks for you help. Actually I started to do the testing and reviewing the file you comment me.
what's strange is that this same probe configurations for linux and I work well. but windows does not work.
be some Apache settings?
JoannaBG
 
Posts: 15
Joined: Fri Apr 25, 2014 4:19 pm

Re: Email configuration

Postby asmecher » Mon May 05, 2014 8:27 am

Hi Joanna,

Do you mean running OJS on a Windows machine vs. running it on a Linux machine? That would suggest the first of the two cases -- that your PHP doesn't support TLS or something is happening with the TLS connection attempt.

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

Re: Email configuration

Postby JoannaBG » Tue May 13, 2014 4:03 pm

I think it's my php settings, still can not find my problem. I hope to resolve it soon. settings and move Apache, PHP, and Ojs not work.
I will make individual php testing to see if the problem is your settings or OJS.
JoannaBG
 
Posts: 15
Joined: Fri Apr 25, 2014 4:19 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 8 guests