* YavscHelpers.cs:
* YavscModel.csproj: * HomeController.cs: * AccountController.cs: * RegisterModel.cs: * FrontOfficeApiController.cs: * RegisterViewModel.cs: refactoring * Web.csproj: deploy robots.txt
This commit is contained in:
parent
5b396b4e07
commit
d31383d83b
8 changed files with 170 additions and 79 deletions
|
|
@ -15,6 +15,7 @@ using Npgsql.Web;
|
|||
using ITContentProvider;
|
||||
using Yavsc;
|
||||
using Npgsql.Web.Blog;
|
||||
using Yavsc.Helpers;
|
||||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
|
|
@ -38,18 +39,7 @@ namespace Yavsc.Controllers
|
|||
return name;
|
||||
}
|
||||
}
|
||||
// Administrator email
|
||||
private static string admail =
|
||||
WebConfigurationManager.AppSettings ["AdminEmail"];
|
||||
/// <summary>
|
||||
/// Gets the Administrator email.
|
||||
/// </summary>
|
||||
/// <value>The admail.</value>
|
||||
public static string Admail {
|
||||
get {
|
||||
return admail;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Lists the referenced assemblies.
|
||||
/// </summary>
|
||||
|
|
@ -128,7 +118,7 @@ namespace Yavsc.Controllers
|
|||
|
||||
using (System.Net.Mail.MailMessage msg = new MailMessage(email,OwnerEmail,"[Contact] "+reason,body))
|
||||
{
|
||||
msg.CC.Add(new MailAddress(Admail));
|
||||
msg.CC.Add(new MailAddress(YavscHelpers.Admail));
|
||||
using (System.Net.Mail.SmtpClient sc = new SmtpClient())
|
||||
{
|
||||
sc.Send (msg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue