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:
abhishekluv
2014-12-07 01:38:54 +05:30
parent 6340e504bc
commit 61bfb14bb3
6 changed files with 61 additions and 8 deletions

View File

@@ -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 });