Class SmtpSetup
This class encapsulates the settings for the SmtpConnector type.
Inheritance
System.Object
SmtpSetup
Namespace: TeleScope.Connectors.Smtp
Assembly: TeleScope.Connectors.Smtp.dll
Syntax
public class SmtpSetup : object
Constructors
| Improve this Doc View SourceSmtpSetup()
The default empty constructor sets the retry limit to its default value.
Declaration
public SmtpSetup()
Properties
| Improve this Doc View SourceCredentials
Gets or sets the connection information (e.g. name and passwort) of type
Declaration
public ISecret Credentials { get; set; }
Property Value
Type | Description |
---|---|
ISecret |
Host
Gets or sets the host for the smtp connection.
Declaration
public string Host { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Port
Gets or sets the port for the smtp connection.
Please note the default ports:
- Port 25 (non-secure) - this is the default port (often times blocked by your ISP - Internet Service Provider)
- Port 26 (non-secure) - use port 26 if port 25 is not working and is blocked by your ISP
- Port 465 (secure - SSL) - this is to be used to send email via SMTP securely over SSL
- Port 587 (secure - TLS) - this is to be used to send email via SMTP securely over TLS
Declaration
public int Port { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Receivers
Gets or sets all receivers that are addressed by sending an email.
Declaration
public string[] Receivers { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Sender
Gets or set the sending email address.
Declaration
public string Sender { get; set; }
Property Value
Type | Description |
---|---|
System.String |