Advertisement
freddy0512

test

May 19th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.88 KB | None | 0 0
  1. $config['upload_path'] = './uploads/article';
  2. $config['allowed_types'] = 'gif|jpg|jpeg|png|txt|php|pdf';
  3. $config['max_size']         = '9000';
  4. $config['encrypt_name']     = true;
  5. $image_data = $this->upload->data();
  6. $fname=$image_data[file_name];
  7. $fpath=$image_data[file_path].$fname;
  8. $slug = url_title($_POST['ar_title'],'-',TRUE);
  9. $ar_title=$this->input->post('ar_title');
  10. $ar_section=$this->input->post('ar_section');
  11. $ar_body = $this->input->post('ar_body');
  12. $penulis = $this->input->post('penulis');
  13. $kategori = $this->input->post('kategori');
  14. $ar_body = $this->input->post('ar_body');
  15. $message="<html><body><span>Judul : {$ar_title}</span>
  16.  <br>
  17. <span>Section : {$ar_section}</span>
  18.                                
  19.                                     <br>
  20.                                 <span>Kategori : {$kategori}</span>
  21.                                     <br>
  22.                                 <span>penulis : {$penulis}</span>
  23.                                 <span style='margin-top:50px;'>: {$ar_body}</span>
  24.                                
  25.                                 <img src='$fpath' />
  26.  
  27.  
  28.  
  29.                               <a href='http://localhost/suarakasih/user/article/revision/$slug'>revision </a>
  30.                                     $nbsp
  31.                               <a href='http://localhost/suarakasih/user/article/publish/$slug'>publish </a>
  32.                                     $nbsp
  33.                                <a href='http://localhost/suarakasih/user/article/archieve/$slug'>archieve </a>
  34.                                     $nbsp
  35.                                <a href='http://localhost/suarakasih/user/article/drop/$slug'>drop </a>
  36.               </body></html>";
  37.            
  38.  
  39.  
  40.             $mail = 'freddysidauruk123@gmail.com';
  41.             //$mail = 'indarsin@gmail.com';
  42.             $subject = 'Artikel Suara Kasih';
  43.             $this->email->from('testets@gmail.com', 'No Reply');
  44.             $this->email->to($mail);
  45.             $this->email->subject($subject);    
  46.             $this->email->message($message);
  47.             $this->email->attach($fpath,inline);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement