<?php
				//formiram tijelo mejla	
				$body = '<strong style="color:#cc0000;">z-als.ch </strong><br /><br />';
	 			$body .= 'EINZELHEITEN:<br /><br />';
	 			$body .= 'Transfer: '.$povratak_display.'<br />';
				$body .= 'Start: '.$pocetak.'<br />';
				$body .= 'Abholzeit: '.$vrijemepolazak.'<br />';
				$body .= '<span style="display: '.($sati != '' ? 'none' : '').'">Ziel: '.$kraj.'<br /></span>';
				$body .= '<span style="display: '.($povratak != 'roundtrip' ? 'none' : '').'">Rückholzeit: '.$vrijemepovratak.'<br /></span>';
				$body .= '<span style="display: '.($sati == '' ? 'none' : '').'">Anzahl der Stunden: '.$sati_display.'<br /></span>';
				$body .= 'Fahrzeugklasse: '.$klasa_display.'<br /><br />';
				
				$body .= 'Passagiere: '.$putnici.'<br />';
				$body .= 'Gepäck: '.$prtljag.'<br />';
				$body .= 'Kindersitz: '.($childseat_select == 0 ? 'Nein' : '<br />'.$childseat).'<br /><br />';
				 
				$body .= 'Preis: '.$cijena_ukupno.' CHF'.' ('.$placanje_display.')<br /><br />';
				
				$body .= 'Passagier: '.$ime.' '.$prezime.'<br />';
				$body .= 'E-mail: '.$email.'<br />';
				$body .= 'Telefonnumer: '.$telefon.'<br /><br />';
				
				$body .= '<span style="display: '.($let == '' ? 'none' : '').'">Flugnummer: '.$let.'<br /></span>';
				$body .= '<span style="display: '.($letboard == '' ? 'none' : '').'">Nameboard: '.$letboard.'<br /></span><br />';
				$body .= '<span style="display: '.($buking == '' ? 'none' : '').'">Hinweise für den Fahrer: '.$buking.'<br /></span>';
				$body .= 'Überprüfen Sie die App für Details!<br />';
 
				//echo $body;
				$mail->MsgHTML($body);
				$address = $reservation_email;
				$mail->AddAddress($address, ""); 
    			if($mail->Send()){
    				$mail->ClearAddresses();
     				$mail->ClearAttachments();
       				 //echo 'POSLAT ';
    			}else{
        			$mail->ClearAddresses();
       				$mail->ClearAttachments();
    				echo '<div class="decline">'.$error_email.' '.$vlasnik_tel.'</div>';
    			} //eo mail if
?>
        