Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function emailSend($ship_item_data{
- //$link = base_url();
- $email ="abc.develop01@gmail.com";
- $this->load->library('email');
- $config['mailtype'] = "html";
- $this->email->initialize($config);
- $this->email->from($email, 'GHL Sports');
- $this->email->to($email);
- $this->email->subject('Sold items detail');
- $msg='<html>
- <head>
- <title>Sold item</title>
- </head>
- <body>
- Dear GHL Sports Client.
- <p>This items heas been sold.</p><ul>';
- foreach($ship_item_data as $data){
- $item = $data['image_name'];
- $this->email->attach("sold/".$item);
- $msg .= '<li>'. $item .'</li>';
- }
- $msg .='</u>
- Please do reply to this email as it will not be monitored.
- </body>
- </html>';
- $this->email->message($msg);
- //$link = base_url();
- //$this->email->attach("sold/1.jpg");
- //Send mail
- if($this->email->send()) {
- echo "email send successfully";
- }else{
- echo "email not send";
- }
- $this->load->helper('path');
- $this->load->library('email');
Add Comment
Please, Sign In to add comment