sendMail() public method

public sendMail ( )
Ejemplo n.º 1
0
 public static function addOrder($checkout, $data)
 {
     $order = new Order();
     $order->name = $checkout['name'];
     $order->email = $checkout['email'];
     $order->phone = $checkout['phone'];
     $order->address = $checkout['address'];
     $order->total = $checkout['total'];
     $order->active_order = md5(time());
     $order->save();
     $order->sendMail($checkout, $data, $order->active_order, $order->id);
     return $order->id;
 }