Class SmtpToolOptions
Configuration options for SMTP tools.
public sealed class SmtpToolOptions
- Inheritance
-
SmtpToolOptions
- Inherited Members
Examples
Configuring SMTP credentials before letting an agent send email:
using LMKit.Agents.Tools.BuiltIn.Net;
var options = new SmtpToolOptions
{
Host = "smtp.example.com",
Port = 587,
Username = "alerts@example.com",
Password = Environment.GetEnvironmentVariable("SMTP_PASSWORD"),
UseTls = true
};
Properties
- AllowedRecipients
Gets or sets allowed recipient addresses or domains (prefix with @). Null allows all recipients.
- FromAddress
Gets or sets the from address. Defaults to Username if not set.
- Host
Gets or sets the SMTP server host.
- Password
Gets or sets the SMTP password.
- Port
Gets or sets the SMTP server port. Default is 587.
- Timeout
Gets or sets the connection timeout. Default is 30 seconds.
- UseSsl
Gets or sets whether to use SSL/TLS. Default is true.
- Username
Gets or sets the SMTP username.