Exemple #1
0
    public Task <string> SendAsync(IdentityMessage message)
    {
        string body = ONMailStyles.getOpening();

        body += message.Body;
        Mail   mailService = new Mail(message.Destination, message.Subject, body);
        string succes      = mailService.send();

        return(Task.FromResult(succes));
    }
    public async Task <string> SendAsync(IdentityMessage message)
    {
        string body = ONMailStyles.getOpening();

        body += message.Body;
        var    mailService = new Mail(message.Destination, message.Subject, body);
        string success     = await mailService.send();

        return(success);
    }