Tutorial: Automated Editorial Email Service Setup
Role: Journal Manager / Site Administrator
Time: 20โ40 minutes
OJS Version: 3.5+
OJS can send automated editorial emails โ review reminders, decision notifications, and scheduled task emails โ without manual intervention. This tutorial covers configuring SMTP delivery and enabling automated email tasks.
Before You Startโ
- You have Journal Manager or Site Administrator access.
- You have SMTP credentials from an email service provider. See Email Providers for free options.
- The acron plugin or a system cron job is running (required for timed emails).
Part 1 โ Configure SMTP Deliveryโ
Step 1 โ Edit config.inc.phpโ
Site Administrators configure SMTP in config.inc.php:
[email]
; Use SMTP for sending email
smtp = On
smtp_server = smtp-relay.brevo.com
smtp_port = 587
smtp_auth = ssl
smtp_username = your@email.com
smtp_password = yourpassword
Common SMTP providers for OJS:
| Provider | Server | Port | Auth |
|---|---|---|---|
| Brevo (Sendinblue) | smtp-relay.brevo.com | 587 | TLS |
| SendGrid | smtp.sendgrid.net | 587 | TLS |
| Mailgun | smtp.mailgun.org | 587 | TLS |
| Gmail | smtp.gmail.com | 587 | TLS |
| Amazon SES | email-smtp.us-east-1.amazonaws.com | 587 | TLS |
Step 2 โ Test Email Deliveryโ
- In OJS, go to Administration โ Email โ Send Test Email.
- Enter your own email address.
- Click Send.
- Check your inbox โ if the test email arrives, SMTP is configured correctly.
Part 2 โ Enable Automated Email Tasksโ
OJS sends automated emails via its scheduled task system.
Option A โ acron Plugin (Recommended for Shared Hosting)โ
The acron plugin is a self-managed scheduled task runner โ it does not require a system cron job.
- Go to Settings โ Website โ Plugins โ Installed Plugins.
- Find Acron and toggle to Enabled.
acron runs tasks (including timed review reminder emails) every time OJS receives a web request.
Option B โ System Cron Job (Recommended for VPS/Dedicated)โ
For better reliability, set up a system cron job:
crontab -e
Add this line to run OJS scheduled tasks every hour:
0 * * * * php /path/to/ojs/lib/pkp/tools/scheduler.php run >> /var/log/ojs-scheduler.log 2>&1
Replace /path/to/ojs with your actual OJS installation path.
Part 3 โ Configure Review Reminder Emailsโ
Automated reminder emails help move submissions through the editorial workflow.
Step 1 โ Set Review Deadlinesโ
- Go to Settings โ Workflow โ Review.
- Set the following:
- Default response deadline (days): Number of days reviewers have to accept/decline.
- Default review deadline (days): Number of days reviewers have to complete the review.
- Click Save.
Step 2 โ Enable Remindersโ
- In Settings โ Workflow โ Review, scroll to the Reminders section.
- Set:
- Send reminder to reviewer before response deadline (days before)
- Send reminder to reviewer before review deadline (days before)
- Click Save.
OJS will automatically send reminder emails to reviewers on the configured schedule.
Part 4 โ Customise Email Templatesโ
Customise the content of automated emails:
-
Go to Settings โ Workflow โ Emails.
-
Click any email template to edit.
-
Key templates for editorial automation:
REVIEW_REQUESTโ sent when reviewer is invitedREVIEW_REMINDโ review reminderREVIEW_CONFIRMโ reviewer acceptsEDITOR_DECISION_ACCEPTโ acceptance notification to authorEDITOR_DECISION_DECLINEโ rejection notification to author
-
Edit subject and body. Use
{$variableName}placeholders for dynamic content. -
Click Save.
Troubleshootingโ
| Problem | Solution |
|---|---|
| Emails not sending | Check SMTP credentials; test with "Send Test Email" in Administration |
| Reminder emails not going out | Ensure acron plugin is enabled or cron job is running |
| Emails going to spam | Use a dedicated SMTP service; add SPF, DKIM, DMARC DNS records for your domain |
| Emails sent with wrong sender | Set Email Signature and Return address in Settings โ Workflow โ Emails |
Next Stepsโ
- Configure Email in OJS โ basic SMTP setup tutorial
- Email Providers โ comparison of free SMTP providers
- Scheduled Tasks โ configure system cron jobs for OJS