EmailManager EmailManager EmailManager EmailManager Class

Definition

Allows an application to launch the email application with a new message displayed. Use this to allow users to send email from your application.

public : static class EmailManagerpublic static class EmailManagerPublic Static Class EmailManager// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Methods

GetForUser(User) GetForUser(User) GetForUser(User) GetForUser(User)

Gets the EmailManagerForUser object for the specified user.

public : static EmailManagerForUser GetForUser(User user)public static EmailManagerForUser GetForUser(User user)Public Static Function GetForUser(user As User) As EmailManagerForUser// You can use this method in JavaScript.
Parameters
user
User User User User

The user account to use to get the EmailManagerForUser object.

Returns

Returns the email manager for the account specified by the user parameter.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

RequestStoreAsync(EmailStoreAccessType) RequestStoreAsync(EmailStoreAccessType) RequestStoreAsync(EmailStoreAccessType) RequestStoreAsync(EmailStoreAccessType)

Gets an email store that is within the specified scope.

public : static IAsyncOperation<EmailStore> RequestStoreAsync(EmailStoreAccessType accessType)public static IAsyncOperation<EmailStore> RequestStoreAsync(EmailStoreAccessType accessType)Public Static Function RequestStoreAsync(accessType As EmailStoreAccessType) As IAsyncOperation( Of EmailStore )// You can use this method in JavaScript.
Parameters
Returns

ShowComposeNewEmailAsync(EmailMessage) ShowComposeNewEmailAsync(EmailMessage) ShowComposeNewEmailAsync(EmailMessage) ShowComposeNewEmailAsync(EmailMessage)

Launches the email application with a new message displayed.

public : static IAsyncAction ShowComposeNewEmailAsync(EmailMessage message)public static IAsyncAction ShowComposeNewEmailAsync(EmailMessage message)Public Static Function ShowComposeNewEmailAsync(message As EmailMessage) As IAsyncAction// You can use this method in JavaScript.
Parameters
message
EmailMessage EmailMessage EmailMessage EmailMessage

The email message that is displayed when the email application is launched.

Returns

An asynchronous action used to indicate when the operation has completed.

Remarks

Call this method from the main UI thread.