Email.php 350 B

12345678910111213141516171819
  1. <?php
  2. namespace app\common\library\message;
  3. use app\common\library\Email as EmailBin;
  4. class Email
  5. {
  6. //发送邮箱通知
  7. public function send($data)
  8. {
  9. $email = new EmailBin();
  10. $email->subject($data['title'])
  11. ->to($data['email'])
  12. ->message($data['message'])
  13. ->send();
  14. }
  15. }