Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- product = new Product(Tools::getValue('ip_product_id'), true, $id_language, $id_shop);
- $sql = 'SELECT email FROM `' . _DB_PREFIX_ . 'contact` WHERE id_contact = ' . (int) (Configuration::get('IP_ASK_ABOUT_PRODUCT_MAIL'));
- $mail = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
- if (Mail::Send((int)$id_language,
- 'ask',
- Mail::l('Pytanie o produkt', (int)$id_language),
- array(
- '{message}' => Tools::getValue('message'),
- '{mail}' => Tools::getValue('ip_ask_about_product_email'),
- '{name}' => Tools::getValue('ip_ask_about_product_name'),
- '{phone}' => Tools::getValue('ip_ask_about_product_phone'),
- '{id_product}' => $product->id,
- '{product_name}' => $product->name),
- $mail[0]["email"],
- null,
- null,
- null,
- null,
- null,
- dirname(__FILE__) . '/mails/'
- ))
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement