-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from FrendsPlatform/issue-15
SMTP.SendEmail - Add OAuth support
- Loading branch information
Showing
9 changed files
with
219 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
Frends.SMTP.SendEmail/Frends.Smtp.SendEmail/Definitions/SecureSocketOption.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace Frends.SMTP.SendEmail.Definitions; | ||
|
||
/// <summary> | ||
/// Secure Socket Options. | ||
/// </summary> | ||
public enum SecureSocketOption | ||
{ | ||
/// <summary> | ||
/// No SSL or TLS encryption should be used. | ||
/// </summary> | ||
None, | ||
/// <summary> | ||
/// Allow the IMailService to decide which SSL or TLS options to use (default). | ||
/// If the server does not support SSL or TLS, then the connection will continue without any encryption. | ||
/// </summary> | ||
Auto, | ||
/// <summary> | ||
/// The connection should use SSL or TLS encryption immediately. | ||
/// </summary> | ||
SslOnConnect, | ||
/// <summary> | ||
/// Elevates the connection to use TLS encryption immediately after reading the greeting and capabilities of | ||
/// the server. If the server does not support the STARTTLS extension, then the connection will fail and a | ||
/// NotSupportedException will be thrown. | ||
/// </summary> | ||
StartTls, | ||
/// <summary> | ||
/// Elevates the connection to use TLS encryption immediately after reading the greeting and capabilities of | ||
/// the server, but only if the server supports the STARTTLS extension. | ||
/// </summary> | ||
StartTlsWhenAvailable | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.