 | EmailServiceExtensionsSendEmail(IEmailService, String, String, Stream) Method |
Send an email to a single recipient with a subject and a body from a stream.
Namespace: SanteDB.Core.Notifications.EmailAssembly: SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.2081-alpha+b4ae72647f2cc271f89142f76fff26ad69e00f5a
Syntaxpublic static void SendEmail(
this IEmailService emailService,
string to,
string subject,
Stream body
)
<ExtensionAttribute>
Public Shared Sub SendEmail (
emailService As IEmailService,
to As String,
subject As String,
body As Stream
)
public:
[ExtensionAttribute]
static void SendEmail(
IEmailService^ emailService,
String^ to,
String^ subject,
Stream^ body
)
[<ExtensionAttribute>]
static member SendEmail :
emailService : IEmailService *
to : string *
subject : string *
body : Stream -> unit Parameters
- emailService IEmailService
- The email service to send the email from.
- to String
- The recipient of the email.
- subject String
- The subject of the email message.
- body Stream
- The body content of the email address.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEmailService. 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