Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
1,700
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. <?php
  2.  
  3. $customEmails = array(
  4.     'DE' => 'deutsch@email.com',
  5.     'BG' => 'bulgarian@email.com',
  6.     'RU' => 'russian@email.com',
  7. );
  8.  
  9. $email = "default@email.com"
  10.  
  11. $country = $_POST['country'];
  12.  
  13. if (in_array($country, array_keys($customEmails))) {
  14.     $email = $customEmails[$country];
  15. }
  16.  
  17. /* ---------------------- */
  18.  
  19. mail($email, ..............);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement