mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Some additions and improvements to Email module
- Added support for bcc and cc while sending emails. - Applied fix for replyto field : https://orchard.codeplex.com/workitem/21103
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Orchard.Email.Controllers {
|
||||
|
||||
public Localizer T { get; set; }
|
||||
|
||||
public ActionResult TestMailSettings(string to, string subject, string body) {
|
||||
public ActionResult TestMailSettings(string to, string subject, string body, string replyTo, string bcc, string cc) {
|
||||
ILogger logger = null;
|
||||
try {
|
||||
var fakeLogger = new FakeLogger();
|
||||
@@ -30,7 +30,10 @@ namespace Orchard.Email.Controllers {
|
||||
_smtpChannel.Process(new Dictionary<string, object> {
|
||||
{"Recipients", to},
|
||||
{"Subject", subject},
|
||||
{"Body", body}
|
||||
{"Body", body},
|
||||
{"ReplyTo",replyTo},
|
||||
{"Bcc", bcc},
|
||||
{"CC",cc}
|
||||
});
|
||||
if (!string.IsNullOrEmpty(fakeLogger.Message)) {
|
||||
return Json(new { error = fakeLogger.Message });
|
||||
|
||||
Reference in New Issue
Block a user