diff --git a/.vs/MP-MON/v14/.suo b/.vs/MP-MON/v14/.suo index a9cb6d8e..a8d69086 100644 Binary files a/.vs/MP-MON/v14/.suo and b/.vs/MP-MON/v14/.suo differ diff --git a/MP-MON/Controllers/HomeController.cs b/MP-MON/Controllers/HomeController.cs index 2480dad5..ec24329f 100644 --- a/MP-MON/Controllers/HomeController.cs +++ b/MP-MON/Controllers/HomeController.cs @@ -84,7 +84,15 @@ namespace MP_MON.Controllers { body += string.Format("{2}{0} \t\t\t | Art: {1}", item.CodMacchina, item.CodArticolo, Environment.NewLine); } - SteamWare.gestEmail.geAuth.mandaEmail(from, to, subject, body); + // se ho una pwd/user utilizzo smtp auth, altrimenti base... + if ((WebConfigurationManager.AppSettings["_emailUser"] != "") && (WebConfigurationManager.AppSettings["_emailPwd"] != "")) + { + SteamWare.gestEmail.geAuth.mandaEmail(from, to, subject, body); + } + else + { + SteamWare.gestEmail.ge.mandaEmail(from, to, subject, body); + } } else { diff --git a/MP-MON/MP-MON.csproj b/MP-MON/MP-MON.csproj index c30c5c5d..92c26d8e 100644 --- a/MP-MON/MP-MON.csproj +++ b/MP-MON/MP-MON.csproj @@ -4,8 +4,7 @@ Debug AnyCPU - - + 2.0 {BA8BCBB8-601C-4642-AE65-0EBF9D5FBE15} {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} @@ -21,8 +20,7 @@ - - + true @@ -103,10 +101,8 @@ True ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll - - - - + + True ..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll @@ -339,6 +335,18 @@ Web.config Designer + + Web.config + + + Web.config + + + Web.config + + + Web.config + @@ -419,8 +427,7 @@ http://localhost:56580/ False False - - + False @@ -432,4 +439,9 @@ --> + + + + + \ No newline at end of file diff --git a/MP-MON/Web.Donati.config b/MP-MON/Web.Donati.config index dc0d0ebd..84eabd8a 100644 --- a/MP-MON/Web.Donati.config +++ b/MP-MON/Web.Donati.config @@ -16,10 +16,10 @@ --> - + + + + diff --git a/MP-MON/Web.IIS01.config b/MP-MON/Web.IIS01.config new file mode 100644 index 00000000..eee461eb --- /dev/null +++ b/MP-MON/Web.IIS01.config @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MP-MON/Web.IIS02.config b/MP-MON/Web.IIS02.config new file mode 100644 index 00000000..eee461eb --- /dev/null +++ b/MP-MON/Web.IIS02.config @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MP-MON/Web.OVH-demo.config b/MP-MON/Web.OVH-demo.config new file mode 100644 index 00000000..da245199 --- /dev/null +++ b/MP-MON/Web.OVH-demo.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/MP-MON/Web.Valgasket.config b/MP-MON/Web.Valgasket.config new file mode 100644 index 00000000..da245199 --- /dev/null +++ b/MP-MON/Web.Valgasket.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file