Commit 4743f5a0 authored by Nico Baruna Putra's avatar Nico Baruna Putra

delete banner

parent ccfcfd9a
......@@ -29,7 +29,7 @@ func sendMail(errorMsg string) {
fmt.Println("Try sending email to " + CONFIG_SENDER_NAME)
m := gomail.NewMessage()
m.SetHeader("From", "nico.baruna@gmail.com")
m.SetHeader("To", "nico.baruna@gmail.com", "nico_putra@banpuindo.co.id", "manandit@gmail.com")
m.SetHeader("To", "nico.baruna@gmail.com", "nico_putra@banpuindo.co.id")
//m.SetAddressHeader("Cc", "dan@example.com", "Dan")
m.SetHeader("Subject", "Error found in Chat BE UAT!")
m.SetBody("text/html", "Hello <b>Nico</b> ! we found and error "+errorMsg)
......@@ -54,7 +54,7 @@ func banner() {
}
func main() {
banner()
//banner()
//readFile(MYFILE)
checkApi()
for range time.Tick(time.Second * 10) {
......@@ -71,7 +71,7 @@ func checkApi() {
fmt.Println("ERROR NIH BOS!, KONEKSI PUTUS , KEMUNGKINAN SERVICE MATI")
Native()
fmt.Print(err.Error())
//sendMail("API not response")
sendMail("API not response")
//os.Exit(1)
} else if response.StatusCode != 200 {
fmt.Println("ERROR NIH BOS!, API Tidak MERESPONS, STATUSNYA : ")
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment