mirror of https://github.com/Squidex/squidex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
namespace Squidex.Infrastructure.Email
|
|
{
|
|
public sealed class SmtpOptions
|
|
{
|
|
public string Server { get; set; }
|
|
|
|
public string Sender { get; set; }
|
|
|
|
public string Username { get; set; }
|
|
|
|
public string Password { get; set; }
|
|
|
|
public bool EnableSsl { get; set; }
|
|
|
|
public int Timeout { get; set; } = 5000;
|
|
|
|
public int Port { get; set; } = 587;
|
|
|
|
public bool IsConfigured()
|
|
{
|
|
return
|
|
!string.IsNullOrWhiteSpace(Server) &&
|
|
!string.IsNullOrWhiteSpace(Sender) &&
|
|
!string.IsNullOrWhiteSpace(Username) &&
|
|
!string.IsNullOrWhiteSpace(Password);
|
|
}
|
|
}
|
|
}
|
|
|