public async Task <IActionResult> SendEmail([FromForm] SendEmailVM emailInfo)
        {
            await _mailNetService.SendEmail(emailInfo.EmailAddress, emailInfo.Username, emailInfo.Subject, emailInfo.BodyHtml, emailInfo.BodyText);

            return(Ok(new
            {
                result = emailInfo,
                message = "Registration Email was successfully sent"
            }));
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> SendEmail([FromBody] SendEmailVM httpParams)
        {
            await _clientServices.SendEmail(httpParams.Data, httpParams.Email, httpParams.AttachmentNameWithExtension);

            return(Ok());
        }