Zmień adres e-mail odbiorcy w funkcji wysyłania wiadomości kontaktowych oraz dodaj dodatkowego odbiorcę marketingowego

This commit is contained in:
2025-03-31 13:40:47 +02:00
parent 97f000aba6
commit 6240a6dbf4

View File

@@ -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' ), '', '', '' ); 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' ) ); \S::alert( \S::lang( 'wiadomosc-zostala-wyslana' ) );
} }
else 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'), '', '', '', '', ); 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' ) ); \S::alert( \S::lang('wiadomosc-zostala-wyslana' ) );
} }
else 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' ) ); \S::alert( \S::lang('wiadomosc-zostala-wyslana' ) );
} }
else{ else{
@@ -373,11 +376,12 @@ if ( \S::get('action') == 'send-contact-form-new' and \S::get( 'token' ) == \S::
$text .= '<p><b>Telefon:</b> ' . \S::get('phone') . '</p>'; $text .= '<p><b>Telefon:</b> ' . \S::get('phone') . '</p>';
$text .= '<p><b>Wiadomość:</b> ' . nl2br(\S::get('message')) . '</p>'; $text .= '<p><b>Wiadomość:</b> ' . nl2br(\S::get('message')) . '</p>';
$text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date( 'Y-m-d H:i:s' ) . '</p>'; $text .= '<p style="font-size: 13px; color: #ccc; margin-top: 50px;"><b>Wysłano:</b> ' . date( 'Y-m-d H:i:s' ) . '</p>';
saveContactData( \S::get('name'), \S::get('email'), \S::get('phone'), \S::get('message'), \S::get('postal_code'), '', '', '', '', ); 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' ) ); \S::alert( \S::lang('wiadomosc-zostala-wyslana' ) );
} }
else else