настройки почты
This commit is contained in:
parent
729cba5416
commit
c83e4832d8
@ -1,11 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<appSettings>
|
||||
<add key="SmtpClientHost" value="smtp.gmail.com" />
|
||||
<add key="SmtpClientPort" value="587" />
|
||||
<add key="PopHost" value="pop.gmail.com" />
|
||||
<add key="SmtpClientHost" value="smtp.yandex.ru" />
|
||||
<add key="SmtpClientPort" value="465" />
|
||||
<add key="PopHost" value="pop.yandex.com" />
|
||||
<add key="PopPort" value="995" />
|
||||
<add key="MailLogin" value="sasda3183@gmail.com" />
|
||||
<add key="MailPassword" value="ozxp vjof uinv fcmj" />
|
||||
<add key="MailLogin" value="tester.b.moio@ya.ru" />
|
||||
<add key="MailPassword" value="pyzzqswchjevecec" />
|
||||
</appSettings>
|
||||
</configuration>
|
@ -6,5 +6,17 @@
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"IPAddress": "http://localhost:5050"
|
||||
|
||||
"IPAddress": "http://localhost:5050",
|
||||
|
||||
"MailConfigBindingModel": {
|
||||
"SmtpClientHost": "smtp.yandex.ru",
|
||||
"SmtpClientPort": 465,
|
||||
|
||||
"PopHost": "pop.yandex.com",
|
||||
"PopPort": 995,
|
||||
|
||||
"MailLogin": "tester.b.moio@ya.ru",
|
||||
"MailPassword": "pyzzqswchjevecec"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,10 @@
|
||||
using SushiBarBusinessLogic.BusinessLogics;
|
||||
using SushiBarBusinessLogic.MailWorker;
|
||||
using SushiBarContracts.BindingModels;
|
||||
using SushiBarContracts.BusinessLogicsContracts;
|
||||
using SushiBarContracts.StoragesContracts;
|
||||
using SushiBarDatabaseImplement.Implements;
|
||||
using static Org.BouncyCastle.Math.EC.ECCurve;
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
builder.Logging.SetMinimumLevel(LogLevel.Information);
|
||||
@ -19,9 +22,11 @@ builder.Services.AddControllers();
|
||||
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
MailConfigBindingModel? mailSender = builder.Configuration.GetSection("MailConfigBindingModel").Get<MailConfigBindingModel>();
|
||||
app.Services.GetService<AbstractMailWorker>()?.MailConfig(mailSender!);
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user