Export (0) Print
Expand All

SendInsecureMessageFromApplication Method (HealthServiceConnection, IList(Guid), Boolean, 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) Version: (1.15.1003.9505)

public static void SendInsecureMessageFromApplication(
	HealthServiceConnection connection,
	IList<Guid> recipientPersonIds,
	bool addressMustBeValidated,
	string senderMailboxName,
	string senderDisplayName,
	string subject,
	string textBody,
	string htmlBody


Type: Microsoft.Health..::..HealthServiceConnection
The connection to use for this operation. The connection must have application capabilities.
Type: System.Collections.Generic..::..IList<(Of <(<'Guid>)>)>
The unique identifiers of the people to which the message should be sent.
Type: System..::..Boolean
If true, HealthVault will ensure that the person has validated their message address before sending the mail. If false, the message will be sent even if the person's address has not been validated.
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.
Type: System..::..String
The message sender's display name.
Type: System..::..String
The subject of the message.
Type: System..::..String
The text body of the message.
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.

System..::..ArgumentException If recipientPersonIds 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.
© 2014 Microsoft