Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. product = new Product(Tools::getValue('ip_product_id'), true, $id_language, $id_shop);
  2. $sql = 'SELECT email FROM `' . _DB_PREFIX_ . 'contact` WHERE id_contact = ' . (int) (Configuration::get('IP_ASK_ABOUT_PRODUCT_MAIL'));
  3. $mail = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
  4.  
  5. if (Mail::Send((int)$id_language,
  6. 'ask',
  7. Mail::l('Pytanie o produkt', (int)$id_language),
  8. array(
  9. '{message}' => Tools::getValue('message'),
  10. '{mail}' => Tools::getValue('ip_ask_about_product_email'),
  11. '{name}' => Tools::getValue('ip_ask_about_product_name'),
  12. '{phone}' => Tools::getValue('ip_ask_about_product_phone'),
  13. '{id_product}' => $product->id,
  14. '{product_name}' => $product->name),
  15. $mail[0]["email"],
  16. null,
  17. null,
  18. null,
  19. null,
  20. null,
  21. dirname(__FILE__) . '/mails/'
  22. ))
  23. {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement