OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



can not send any email

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.

can not send any email

Postby yilmazee » Tue Nov 12, 2013 10:22 am

Hello, I am working in a education company.
We decided use ojs. I installed ojs2.4.2 on (hyper-v virtual windows server 2008 R2 enterprise) server with AppServ.2.5.10 (Apache2.2,mysql,php5)
It is running good but I can not send any mail yet.
after sending mail , mail sending message is written on screen but in fact mail dont send.

config.inc file like below:
---------------------------
;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;

[email]

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

; SMTP server settings
smtp_server = 15.10.20.2
smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = LOGIN
smtp_username = journal
smtp_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 = journal@aaa.edu.tr

; 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

---------------
what can I do to solve email sending problem.
What can I do about Exchange server (block or other reason).
The solve are urgent for me.
I hope you understand me. Thank for your support.
yilmazee
 
Posts: 3
Joined: Mon Nov 11, 2013 12:48 pm

Re: can not send any email

Postby asmecher » Tue Nov 12, 2013 11:03 am

Hi yilmazee,

If you have access to the mail server's error logs, debugging will be much easier. Double-check your SMTP port information, especially if you're using TLS; see also other threads about SMTP AUTH, in which the tls:// PHP wrapper is used.

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

Re: can not send any email

Postby yilmazee » Tue Nov 19, 2013 6:31 am

The mail is sending as journal@aaa.edu.tr but we decided that journal user never login on exchange server.
ojs system looks sending mail but we didnt find any log about journal user on exchange server.
Can you say, where is smtp mail function php code on ojs system? I can't understand php mail code step by step.
yilmazee
 
Posts: 3
Joined: Mon Nov 11, 2013 12:48 pm

Re: can not send any email

Postby asmecher » Tue Nov 19, 2013 8:45 am

Hi yilmazee,

The SMTP sending is implemented in lib/pkp/classes/mail/SMTPMailer.inc.php.

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

Re: can not send any email

Postby yilmazee » Thu Nov 21, 2013 6:27 am

Hi,
I am trying to send mail with adding echo commands on SMTPMailer.inc.php file.
function authenticate() is failed.
at plain : I cant find the reason clearly.
at login : function authenticate_login() {
if (!$this->send('AUTH', 'LOGIN'))
return false;
if (!$this->receive('334')) //here is failed.

I dont know what means PLAIN , LOGIN , CRAM-MD5 and DIGEST-MD5 authenticate.
What can I do to authenticate?
yilmazee
 
Posts: 3
Joined: Mon Nov 11, 2013 12:48 pm

Re: can not send any email

Postby asmecher » Thu Nov 21, 2013 9:01 am

Hi yilmazee,

These are different kinds of SMTP authorization; you'll need to make sure you specify a type of authentication that your server is capable of and configured to support. Note also that your server may be configured to require TLS (such as SSL).

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

Re: can not send any email

Postby hamsavijay » Sun Dec 29, 2013 11:57 am

Any update whether your Send Email is working?

We are having similar issues since upgrade to 2.4.3 from 2.4.2. Can't figure out the issue. we've tried various SMTPs such as gmail account and our maftree.org email account. All proved difficult to check whether it works.

Previous versions (including 2.4.3) had worked well - as we can check on Sent folder of gmail account and also get emails promptly when author submits article etc.

Please share your solutions if you have succeeded.

Thanks,
Priya
hamsavijay
 
Posts: 18
Joined: Fri Jul 03, 2009 3:14 pm

Re: can not send any email

Postby asmecher » Sun Dec 29, 2013 12:39 pm

Hi Priya,

Is there a typo in your version description? You write that 2.4.3 and all prior versions worked; 2.4.3 is the current version. Is it just a single installation of 2.4.3 you're having trouble with?

The SMTP code has not changed at all between 2.4.2 and 2.4.3, so I wonder if there isn't a server configuration change or something similar.

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


Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 8 guests