изменения чтобы работало
This commit is contained in:
parent
757f22bfb5
commit
06a496aa5f
@ -2,10 +2,10 @@
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="SmtpClientHost" value="smtp.yandex.ru" />
|
||||
<add key="SmtpClientPort" value="465" />
|
||||
<add key="SmtpClientPort" value="587" />
|
||||
<add key="PopHost" value="pop.yandex.com" />
|
||||
<add key="PopPort" value="995" />
|
||||
<add key="MailLogin" value="tester.b.moio@ya.ru" />
|
||||
<add key="MailLogin" value="tester.b.moio@yandex.ru" />
|
||||
<add key="MailPassword" value="pyzzqswchjevecec" />
|
||||
</appSettings>
|
||||
</configuration>
|
@ -155,6 +155,8 @@ namespace SushiBarBusinessLogic.BusinessLogics
|
||||
}
|
||||
}
|
||||
private bool SendOrderStatusMail(int clientId, string subject, string text)
|
||||
{
|
||||
try
|
||||
{
|
||||
var client = _clientLogic.ReadElement(new() { Id = clientId });
|
||||
if (client == null)
|
||||
@ -169,5 +171,11 @@ namespace SushiBarBusinessLogic.BusinessLogics
|
||||
});
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -9,12 +9,12 @@
|
||||
|
||||
"MailConfigBindingModel": {
|
||||
"SmtpClientHost": "smtp.yandex.ru",
|
||||
"SmtpClientPort": 465,
|
||||
"SmtpClientPort": 587,
|
||||
|
||||
"PopHost": "pop.yandex.com",
|
||||
"PopPort": 995,
|
||||
|
||||
"MailLogin": "tester.b.moio@ya.ru",
|
||||
"MailLogin": "tester.b.moio@yandex.ru",
|
||||
"MailPassword": "pyzzqswchjevecec"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user