Email Notifications not sent

I am currently using OJS 2.4.6.0 and testing the submission process I notice emails are not sent to any parties at all (to authors for their submission, to reviewers for being selected or to the editor being cc’d). I’ve checked previous postings and I’ve enabled all notifications check boxes, but still emails are not sent.
Any help with this would be greatly appreciated.

Many thanks,
Thomas

This will first depend on what email configuration you have in config.inc.php.

The default is to use PHP’s built-in mail() function, but if your sever does not support this, you will need to specify an SMTP server.

Thanks a lot for the reply. I got my hosting company to check this and they’ve changed the SMTP server but still no email notifications come through at all. Any other suggestions, please, I’d be grateful.

There should either be an error message captured in your webserver’s log, or an error message captured in your host’s SMTP server log. You will probably be able to check on the webserver’s log yourself, but you will need your host’s assistance if the error is in the SMTP server logs.

Hi Graham,

Thanks a lot again for the suggestions. Here are the logs I got sent to me by the host and all appears to be running ok, but no emails delivered! I am at a loss here, so any other suggestions would be greatly appreciated and thanks a lot for your assistance with this.

The logs are showing the emails as sent:

2015-11-20 07:00:09 1Zzfg1-0006lM-8a <= thomas.doukas@aol.com H=web34.extendcp.co.uk (linguistics-unlimited.co.uk) [79.170.40.34] P=esmtpa A=fixed_plain:admin@linguistics-unlimited.co.uk S=675
2015-11-20 07:00:10 1Zzfg1-0006lM-8a => td3_acad@hotmail.com
2015-11-20 07:00:10 1Zzfg1-0006lM-8a → tom_carra@yahoo.com
2015-11-20 07:00:10 1Zzfg1-0006lM-8a → thomas.doukas@aol.com
2015-11-20 07:00:10 1Zzfg1-0006lM-8a Completed

2015-11-20 07:00:31 1ZzfgN-0007AO-2v <= thomas.doukas@aol.com H=web34.extendcp.co.uk (linguistics-unlimited.co.uk) [79.170.40.34] P=esmtpa A=fixed_plain:admin@linguistics-unlimited.co.uk S=560
2015-11-20 07:00:31 1ZzfgN-0007AO-2v => td3_acad@hotmail.com
2015-11-20 07:00:31 1ZzfgN-0007AO-2v → thomas.doukas@aol.com
2015-11-20 07:00:31 1ZzfgN-0007AO-2v Completed

My guess would be that your message is being discarded by hotmail.com and aol.com because of SPF violations.

The short version is more and more hosts are requiring that the FROM address match the SERVER which originates the message.

For example, if your originating mailserver is linguistics-unlimited.co.uk, but your journal’s primary contact email is not something@linguistics-unlimited.co.uk the recipients are likely to flag the message as invalid.

Try using an address in the Journal’s Principal Contact (or in config.inc.php’s default_envelope_sender) which matches the SMTP server’s hostname (or any hostname exposed by the SMTP server as SPF eligible).

Graham, that worked a treat! Thanks a lot for all your help.

Hello,
I’m using OJS3 but have the same problem.
I don’t really understand which email and where I should replace.
The settings in config.inc.php:

[email]

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

; SMTP server settings
 smtp_server = mail.example.com
 smtp_port = 25

; Enable SMTP authentication
; Supported mechanisms: ssl, tls
 smtp_auth = ssl
 smtp_username = username
 smtp_password = password

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

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

You will need to check with your system administrator or hosting provider to find out what SMTP setting to use. They should have guidance specific to your server.

Failing that, you can use a email account specific to this usage, or to you as a user. The SMTP settings for this account would be part of your email provider’s documentation or support.

My emails were working previously but they have stopped now. I have checked all the above mention problems and also concern with my host provider but the issue is same. Any other suggestion please.

@sam, this will depend on a lot of factors, including your application and version. A good starting place is here:

Resolve the issue thanks