UserManager<TUser, TKey>.SendEmailAsync Method (TKey, String, String)

 

Sends an e-mail to the user.

Namespace:   Microsoft.AspNet.Identity
Assembly:  Microsoft.AspNet.Identity.Core (in Microsoft.AspNet.Identity.Core.dll)

Syntax

public virtual Task SendEmailAsync(
    TKey userId,
    string subject,
    string body
)
public:
virtual Task^ SendEmailAsync(
    TKey userId,
    String^ subject,
    String^ body
)
abstract SendEmailAsync : 
        userId:'TKey *
        subject:string *
        body:string -> Task
override SendEmailAsync : 
        userId:'TKey *
        subject:string *
        body:string -> Task
Public Overridable Function SendEmailAsync (
    userId As TKey,
    subject As String,
    body As String
) As Task

Parameters

  • userId
    Type: TKey

    The user ID.

Return Value

Type: System.Threading.Tasks.Task

The task representing the asynchronous operation.

See Also

UserManager<TUser, TKey> Class
Microsoft.AspNet.Identity Namespace
ASP.NET Identity

Return to top