static void Main(string[] args)
        {
            //string jason_query = "{\"From\":" + "\"[email protected]\"" + "," +
            //                    "\"To\":" + "\"[email protected]\"" + "," +
            //                    "\"Subject\":" + "\"titulo email\"" + "," +
            //                    "\"HtmlBody\":" + "\"<h1>hola2</h1>\"" + "," +
            //                    "\"TextBody\":" + "\"Que tal\"" + "}";
            // DataSet ds = new DataSet();
            // using (SqlConnection cn = new SqlConnection("Server=172.28.7.14;Database=BDPOS;User ID=pos_oracle;Password=Bata2018**;Trusted_Connection=False;"))
            // {
            //     using (SqlCommand cmd = new SqlCommand("select html from tformato_html where codigo='BB'",cn))
            //     {
            //         cmd.CommandType = CommandType.Text;
            //         SqlDataAdapter da = new SqlDataAdapter(cmd);
            //         da.Fill(ds);
            //     }
            // }
            // string html = ds.Tables[0].Rows[0]["html"].ToString();
            ////-- s = s.Replace(""","\"");
            // html = html.Replace("\"", "'");
            // html = html.Replace("bataclubcodigobarra", @"http://posperu.bgr.pe/ws_ec/barra/201906/45AA7EA569EC42F.png");

            PostEnvio.envio_correo("*****@*****.**", "*****@*****.**", "Actualización de registro Bata Club", "", "Que tal");

            // PostEnvio.envio_correo2("*****@*****.**", "*****@*****.**", "Actualización de registro Bata Club", "", "Que tal");
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     PostEnvio.send("*****@*****.**", "*****@*****.**", "Actualización de registro Bata Club", "", "<h1>Html body</h1><p>Rich HTML message body.</p>");
 }