diff --git a/plugins/special-actions-middle.php b/plugins/special-actions-middle.php index 20d7c50..4fade80 100644 --- a/plugins/special-actions-middle.php +++ b/plugins/special-actions-middle.php @@ -96,8 +96,9 @@ if ( \S::get( 'action' ) == 'send-contact' and \S::get( 'token' ) == \S::get_ses saveContactData( \S::get( 'inputName' ), \S::get( 'inputEmail' ), '', \S::get('message'), '', \S::get( 'inputTitle' ), '', '', '' ); - if ( \S::send_email( 'l.paczkowska@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) ) + if ( \S::send_email( 'k.rzeszutek@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) ) { + \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ); \S::alert( \S::lang( 'wiadomosc-zostala-wyslana' ) ); } else @@ -159,8 +160,9 @@ if ( \S::get('action') == 'send-contact-modal' and \S::get( 'token' ) == \S::get saveContactData( \S::get('name'), \S::get('email'), \S::get('phone'), \S::get('information'), \S::get('address'), '', '', '', '', ); - if ( \S::send_email( 'l.paczkowska@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) ) + if ( \S::send_email( 'k.rzeszutek@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) ) { + \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ); \S::alert( \S::lang('wiadomosc-zostala-wyslana' ) ); } else @@ -295,8 +297,9 @@ if ( \S::get('action') == 'send-contact-landing' and \S::get( 'token' ) == \S::g '' ); - if ( \S::send_email( 'l.paczkowska@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) ) + if ( \S::send_email( 'k.rzeszutek@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) ) { + \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ); \S::alert( \S::lang('wiadomosc-zostala-wyslana' ) ); } else{ @@ -373,11 +376,12 @@ if ( \S::get('action') == 'send-contact-form-new' and \S::get( 'token' ) == \S:: $text .= '
Telefon: ' . \S::get('phone') . '
'; $text .= 'Wiadomość: ' . nl2br(\S::get('message')) . '
'; $text .= 'Wysłano: ' . date( 'Y-m-d H:i:s' ) . '
'; - + saveContactData( \S::get('name'), \S::get('email'), \S::get('phone'), \S::get('message'), \S::get('postal_code'), '', '', '', '', ); - if ( \S::send_email( 'l.paczkowska@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) ) + if ( \S::send_email( 'k.rzeszutek@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ) ) { + \S::send_email( 'marketing@vidok.com', 'Wiadomość ze strony vidok.com', $text, \S::get('email'), $files_to_send ); \S::alert( \S::lang('wiadomosc-zostala-wyslana' ) ); } else