Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public function index()
  2. {
  3. $this->load->helper('form');
  4. $this->load->view('sellerend/seller_signup.php');
  5. $config = array(
  6. 'protocol' => 'smtp',
  7. 'smtp_host' => 'ssl://smtp.gmail.com',
  8. 'smtp_port' => '465',
  9. 'smtp_user' => 'myemail@gmail.com',
  10. 'smtp_pass' => 'mypassword',
  11. 'mailtype' => 'html',
  12. 'charset' => 'iso-8859-1'
  13. );
  14.  
  15. $this->load->library('email',$config);
  16. $this->email->initialize($config);
  17. $this->email->set_newline("rn");
  18. $this->email->from('myemail@gmail.com','my name');
  19. $this->email->to('ashurenu1993@gmail.com');
  20. $this->email->message('its working bro');
  21. if ($this->email->send())
  22. {
  23. echo "hi its works";
  24. }
  25. else
  26. {
  27. show_error($this->email->print_debugger());
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement