Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. if ($mail_alert->add() !== false) {
  2. die('1');
  3.  
  4. $product_name = Product::getProductName($id_customer);
  5. $shop_email = 'my-email-for-test@email.com';
  6. $shop_name = Configuration::get('PS_SHOP_NAME');
  7. $dir_mail = dirname(__FILE__).'/../../mails/';
  8. $template_vars = array(
  9. '{customer_email}' => $customer_email,
  10. '{product_name}' => $product_name
  11. );
  12.  
  13. Mail::Send(
  14. $id_lang,
  15. 'new_oos',
  16. Mail::l('New request of product', $id_lang),
  17. $template_vars,
  18. (string)$shop_email,
  19. null,
  20. (string)$shop_email,
  21. (string)Configuration::get('PS_SHOP_NAME', null, null, $id_shop),
  22. null,
  23. null,
  24. $dir_mail,
  25. false,
  26. $id_shop
  27. );
  28.  
  29. } else {
  30. die('0');
  31. }
  32. }
  33.  
  34. Server: smtp.gmail.com (if you uses gmail)
  35.  
  36. Username: your gmail id
  37.  
  38. Password: your gmail password
  39.  
  40. Encryption: SSL
  41.  
  42. Port: 465
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement