Fix excerpts on blog posts
This commit is contained in:
parent
429c373db7
commit
ff9f0a7b0b
124 changed files with 187 additions and 604 deletions
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: Configuring the Reroute Email Module
|
||||
excerpt: How to configure the Reroute Email module, to prevent sending emails to real users from your pre-production sites!
|
||||
tags:
|
||||
- drupal
|
||||
- drupal-6
|
||||
|
@ -7,13 +8,9 @@ tags:
|
|||
- drupal-planet
|
||||
- email
|
||||
draft: true
|
||||
use: [posts]
|
||||
---
|
||||
{% block excerpt %}
|
||||
[Reroute Email](https://www.drupal.org/project/reroute_email) module uses `hook_mail_alter()` to prevent emails from being sent to users from non-production sites. It allows you to enter one or more email addresses that will receive the emails instead of delivering them to the original user.
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
> This is useful in case where you do not want email sent from a Drupal site to reach the users. For example, if you copy a live site to a test site for the purpose of development, and you do not want any email sent to real users of the original site. Or you want to check the emails sent for uniform formatting, footers, ...etc.
|
||||
|
||||
As we don't need the module configured on production (we don't need to reroute any emails there), it's best to do this in code using settings.local.php (if you have one) or the standard settings.php file.
|
||||
|
@ -49,4 +46,3 @@ $conf['reroute_email_address'] = implode(';', array(
|
|||
```
|
||||
|
||||
In this example, person2@example.com and person3@example.com would receive their emails from the site as normal. Any emails to addresses not in the array would continue to be redirected to person1@example.com.
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue