@@ 80,12 80,14 @@ func (h *Helper) Send(name, from, rcpt string, data gobwebs.Map) error {
}
checker := h.q.Checker()
- if err := checker.Check(rcpt, h.CheckerLimit); err != nil {
- // Email address check failed. Don't email
- // We don't want to return error here. The checker.Check function
- // should do all the individual use case logging and other work.
- // XXX Maybe re-think this `return nil` decision in the future
- return nil
+ if checker != nil {
+ if err := checker.Check(rcpt, h.CheckerLimit); err != nil {
+ // Email address check failed. Don't email
+ // We don't want to return error here. The checker.Check function
+ // should do all the individual use case logging and other work.
+ // XXX Maybe re-think this `return nil` decision in the future
+ return nil
+ }
}
var (