public async Task <IActionResult> Post(Mail mail)
        {
            if (mail.IsValid())
            {
                mail.SetPixel(Request.Scheme + "://" + Request.Host + Request.PathBase +
                              Url.Action("getPixel", "Track"));
                await _service.AddMail(mail);

                return(Ok(mail.Id));
            }
            return(NotFound("The email must have a receiver, sender and a body."));
        }