Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function index()
- {
- $this->load->helper('form');
- $this->load->view('sellerend/seller_signup.php');
- $config = array(
- 'protocol' => 'smtp',
- 'smtp_host' => 'ssl://smtp.gmail.com',
- 'smtp_port' => '465',
- 'smtp_user' => 'myemail@gmail.com',
- 'smtp_pass' => 'mypassword',
- 'mailtype' => 'html',
- 'charset' => 'iso-8859-1'
- );
- $this->load->library('email',$config);
- $this->email->initialize($config);
- $this->email->set_newline("rn");
- $this->email->from('myemail@gmail.com','my name');
- $this->email->to('ashurenu1993@gmail.com');
- $this->email->message('its working bro');
- if ($this->email->send())
- {
- echo "hi its works";
- }
- else
- {
- show_error($this->email->print_debugger());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement