talent/emailer/email_test.go

37 lines
751 B
Go
Raw Normal View History

2021-12-30 09:16:20 +00:00
package emailer
import "testing"
func TestSend(t *testing.T) {
err := Send("test@kumoly.io",
[]string{"test@kumoly.io"}, "TestMaintain",
&Body{
App: App{
Logo: "https://www.taishinlife.com.tw/assets/images/ui/site-header/taishin/logo.svg",
Theme: "#d70c18",
FooterColor: "#ffffff",
},
Greeting: "您好",
Receiver: "會員",
Sender: "台新人壽專業團隊",
Content: `
使Line,
| | |
| :------:| :-----------: |
| **A** | AAA |
| **B** | BBB |
, [](mailto:evan.yf.chen@ibm.com)
`,
},
)
if err != nil {
t.Error(err)
}
}