Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Microsoft Health
 SendInsecureMessageFromApplication ...
Collapse All/Expand All Collapse All
 Collapse AllExpand All        Code: All Code: Multiple Code: Visual Basic Code: C# 
SendInsecureMessageFromApplication Method (IList(MailRecipient), String, String, String, String, String)

Sends an insecure message originating from the application to the specified message recipients.

Namespace:  Microsoft.Health
Assembly:  Microsoft.Health (in Microsoft.Health.dll)
Visual Basic (Declaration)
Public Sub SendInsecureMessageFromApplication ( _
    mailRecipient As IList(Of MailRecipient), _
    senderMailboxName As String, _
    senderDisplayName As String, _
    subject As String, _
    textBody As String, _
    htmlBody As String _
)
Visual Basic (Usage)
Dim instance As ApplicationConnection
Dim mailRecipient As IList(Of MailRecipient)
Dim senderMailboxName As String
Dim senderDisplayName As String
Dim subject As String
Dim textBody As String
Dim htmlBody As String

instance.SendInsecureMessageFromApplication(mailRecipient, _
    senderMailboxName, senderDisplayName, _
    subject, textBody, htmlBody)
C#
public void SendInsecureMessageFromApplication(
    IList<MailRecipient> mailRecipient,
    string senderMailboxName,
    string senderDisplayName,
    string subject,
    string textBody,
    string htmlBody
)

Parameters

mailRecipient
Type: System.Collections.Generic..::.IList<(Of <(MailRecipient>)>)
The addresses and display names of the people to send the message to.
senderMailboxName
Type: System..::.String
An application specified mailbox name that's sending the message. The mailbox name is appended to the application's domain name to form the From email address of the message. This parameter should only contain the characters before the @ symbol of the email address.
senderDisplayName
Type: System..::.String
The message sender's display name.
subject
Type: System..::.String
The subject of the message.
textBody
Type: System..::.String
The text body of the message.
htmlBody
Type: System..::.String
The HTML body of the message.
If both the textBody and htmlBody of the message is specified then a multi-part message will be sent so that the html body will be used and fallback to text if not supported by the client. If the domain name of the application has not been previously set (usually through app registration), this method will throw a HealthServiceException.
ExceptionCondition
System..::.ArgumentException If MailRecipient is null or empty, -or- if senderMailboxName is null or empty, -or- if senderDisplayName is null or empty, -or- if subject is null or empty, -or- if textBody and htmlBody are both null or empty.
Microsoft.Health..::.HealthServiceException If the server returned a failure when making the request.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker