DomainSystemHostExtensionsSendMail Method |
Sends a mail message using a host specific SMTP server.
Namespace:
Aloe.SystemFrameworks.Domain.Core
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic static void SendMail(
this IDomainSystemHost host,
string to,
string subject,
string body
)
<ExtensionAttribute>
Public Shared Sub SendMail (
host As IDomainSystemHost,
to As String,
subject As String,
body As String
)
public:
[ExtensionAttribute]
static void SendMail(
IDomainSystemHost^ host,
String^ to,
String^ subject,
String^ body
)
[<ExtensionAttribute>]
static member SendMail :
host : IDomainSystemHost *
to : string *
subject : string *
body : string -> unit
Parameters
- host
- Type: Aloe.SystemFrameworks.Domain.CoreIDomainSystemHost
The host. - to
- Type: SystemString
A String that contains the addresses of the recipients of the email message. Multiple email addresses must be separated with a comma character (","). - subject
- Type: SystemString
The subject. - body
- Type: SystemString
The body.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDomainSystemHost. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also