Conditions | 1 |
Total Lines | 7 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | //////////////////////////////////////////////////////////////////////////////// |
||
34 | func (s *Strategy) Write(p []byte) (n int, err error) { |
||
35 | s.sender.SendAsync(mailSender.Message{ |
||
36 | Message: s.Message, |
||
37 | Template: s.Template, |
||
38 | Data: mailSender.EmailData{"Data": string(p)}, |
||
39 | }) |
||
40 | return len(p), nil |
||
41 | } |
||
42 |