Ejemplo n.º 1
0
        public void Post([FromBody] ContactSchema ContactForm)
        {
            var        data   = ContactForm;
            SmtpClient client = new SmtpClient("smtp.gmail.com");

            client.Port = 587;
            //if we need to authenticate
            client.Credentials = new NetworkCredential("*****@*****.**", "password");

            //security: ask to enable SSL
            //client.EnableSsl = true;

            //Construct the email
            //MailMessage mailMessage = new MailMessage()
            //{
            //    From = "youremailaddress",
            //    To = form.email,
            //    Subject = form.subject,
            //    Body = form.message
            //};

            //client.Send(mailMessage);
        }
Ejemplo n.º 2
0
 public GraphQLController(ContactSchema schema)
 {
     _schema = schema;
 }