Merge branch 'master' into 'dev_production'
Master
See merge request !42
Showing
application/controllers/Orders.php
0 → 100644
This diff is collapsed.
Click to expand it.
| ... | @@ -103,27 +103,13 @@ | ... | @@ -103,27 +103,13 @@ |
| } | } | ||
| function send_mail($subject,$email,$message,$attach=null) { | function send_mail($subject,$email,$message,$attach=null) { | ||
| $ci =& get_instance(); | $headers = "MIME-Version: 1.0" . "\r\n"; | ||
| $ci->load->library('email'); | $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; | ||
| $ci->email->initialize(array( | $headers .= "From: [email protected] \r\n"; | ||
| 'protocol' => 'smtp', | $headers .= "Reply-To: ". $email. "\r\n"; | ||
| 'smtp_host' => 'smtp.sendgrid.net', | $headers .= "X-Mailer: PHP/" . phpversion(); | ||
| 'smtp_user' => '[email protected]', | $headers .= "X-Priority: 1" . "\r\n"; | ||
| 'smtp_pass' => 'Golden_123', | |||
| 'smtp_port' => 587, | mail($email, $subject, $message, $headers); | ||
| 'crlf' => "\r\n", | } | ||
| 'newline' => "\r\n" | |||
| )); | |||
| $ci->email->from('[email protected]', 'DcarFixxers'); | |||
| $ci->email->to($email); | |||
| $ci->email->cc('[email protected]'); | |||
| $ci->email->subject($subject); | |||
| $ci->email->message($message); | |||
| $ci->email->set_mailtype('html'); | |||
| if($attach != null) { | |||
| $ci->email->attach($attach); | |||
| } | |||
| return $ci->email->send(); | |||
| } | |||
| ?> | ?> | ||
| \ No newline at end of file |
application/models/Order_model.php
0 → 100644
This diff is collapsed.
Click to expand it.
application/views/Orders/list_orders.php
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
174 KB