另客网go项目公用的代码库

email_test.go 380B

12345678910111213141516171819
  1. package notice
  2. import (
  3. "testing"
  4. )
  5. func TestSendEmail(t *testing.T) {
  6. err := SendEmailBySMTP("", "", "", "", "test", "471155401@qq.com", "test email", true)
  7. if err != nil {
  8. t.Error(err)
  9. }
  10. }
  11. func TestSendEmailBySendCloud(t *testing.T) {
  12. if err := SendEmailBySendCloud("", "", "", "", "", "test", "386621916@qq.com", "test email", true); err != nil {
  13. t.Error(err)
  14. }
  15. }