mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
closes #3427
This commit is contained in:
@@ -71,6 +71,7 @@ var fs = require('fs'),
|
|||||||
Plugins.fireHook('action:email.send', {
|
Plugins.fireHook('action:email.send', {
|
||||||
to: email,
|
to: email,
|
||||||
from: meta.config['email:from'] || 'no-reply@localhost.lan',
|
from: meta.config['email:from'] || 'no-reply@localhost.lan',
|
||||||
|
from_name: meta.config['email:from_name'] || 'NodeBB',
|
||||||
subject: translated[2],
|
subject: translated[2],
|
||||||
html: translated[0],
|
html: translated[0],
|
||||||
plaintext: translated[1],
|
plaintext: translated[1],
|
||||||
|
|||||||
@@ -14,6 +14,13 @@
|
|||||||
</p>
|
</p>
|
||||||
<input type="text" class="form-control input-lg" id="email:from" data-field="email:from" placeholder="info@example.org" /><br />
|
<input type="text" class="form-control input-lg" id="email:from" data-field="email:from" placeholder="info@example.org" /><br />
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="email:from_name"><strong>From Name</strong></label>
|
||||||
|
<p class="help-block">
|
||||||
|
The from name to display in the email.
|
||||||
|
</p>
|
||||||
|
<input type="text" class="form-control input-lg" id="email:from_name" data-field="email:from_name" placeholder="NodeBB" /><br />
|
||||||
|
</div>
|
||||||
<button class="btn btn-block btn-default" type="button" data-action="email.test">Send Test Email</button>
|
<button class="btn btn-block btn-default" type="button" data-action="email.test">Send Test Email</button>
|
||||||
<p class="help-block">
|
<p class="help-block">
|
||||||
The test email will be sent to the currently logged in user's email address.
|
The test email will be sent to the currently logged in user's email address.
|
||||||
|
|||||||
Reference in New Issue
Block a user