Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
using Grand.Domain.Messages;
namespace Grand.Module.Installer.Services;
public partial class InstallationService
{
protected virtual Task InstallEmailAccounts()
{
var emailAccounts = new List<EmailAccount> {
new() {
Email = "[email protected]",
DisplayName = "Store name",
Host = "smtp.mail.com",
Port = 25,
Username = "123",
Password = "123",
SecureSocketOptionsId = 1,
UseServerCertificateValidation = true
}
};
emailAccounts.ForEach(x => _emailAccountRepository.Insert(x));
return Task.CompletedTask;
}
}