public function GeneraeEmailForUserVendor($orderedId, $productId, $productName, $productPrice, $quantity, $shippingCharges, $productTotalPrice, $name, $mobileno, $email, $buildingname, $area, $city, $pincode) { $this->setOrderedId($orderedId); $this->setProductId($productId); $this->setProductName($productName); $this->setProductPrice($productPrice); $this->setQuantity($quantity); $this->setShippingCharges($shippingCharges); $this->setProductTotalPrice($productTotalPrice); $this->setName($name); $this->setMobileno($mobileno); $this->setEmail($email); $this->setBuildingname($buildingname); $this->setArea($area); $this->setCity($city); $this->setPincode($pincode); //email for customer $returnEmailForUser = new OrderConfirmationEmail(); $returnEmailForUser->GenarateEmailForUSer($orderedId, $productId, $productName, $productPrice, $quantity, $shippingCharges, $productTotalPrice, $name, $mobileno, $email, $buildingname, $area, $city, $pincode); //email for us $returnEmailForVendor = new OrderConfirmationEmail(); $returnEmailForVendor->GenarateEmailForPeto($orderedId, $productId, $productName, $productPrice, $quantity, $shippingCharges, $productTotalPrice, $name, $mobileno, $email, $buildingname, $area, $city, $pincode); $returnEmailSuccessMessage = "EMAIL_SUCCESSFUULY_SENT"; return $returnEmailSuccessMessage; }