Message = 'E-mail byl odeslán'; } function DoMail($to,$from,$subj,$body,$att='',$real_name='',$text='text/html', $ret_path='', $bcc='') { if(!isset($_SESSION['valid_request'])) return false; else $_SESSION['valid_request'] == null; $subj =addslashes($subj); $body =addslashes($body); $header = "From: ".$from."\n"; $header .= "MIME-version: 1.0\n"; $header .= "X-Mailer: PHP\n"; $header .= "Return-Path: <".$from.">\n"; if($bcc <> '') $header .= "BCC: <".$bcc.">\n"; $header .= "Reply-To: ".((empty($ret_path)) ? $from : $ret_path)."\n"; if(!empty($att)) { if(empty($real_name)) $real_name = $att; $type = $this->GetMime($real_name); $fo = fopen($att,'r'); if(!$fo) { $header .= "Content-Type: ".$text."; charset=UTF-8\n"; $header .= "Content-Transfer-Encoding: quoted-printable\n\n"; $header .= imap_8bit($body) . "\n\n"; $this->Message .= ', ale soubor se nepodařilo přiložit'; } else { $att_content = fread($fo,filesize($att)); $att_content = chunk_split(base64_encode($att_content)); fclose ($fo); $boundary = "~÷~÷~÷~÷~÷~÷~÷~÷~÷~"; $header .= "Content-Type: multipart/mixed; boundary=".$boundary."\n\n"; $header .= "This is a multi-part message in MIME format.\n\n"; $header .= "--".$boundary."\n"; $header .= "Content-Type: ".$text."; charset=UTF-8\n"; $header .= "Content-Transfer-Encoding: quoted-printable\n\n"; $header .= imap_8bit($body)."\n\n"; $header .= "--".$boundary."\n"; $header .= "Content-Type: ".$type."\n"; $header .= "Content-Transfer-Encoding: base64\n"; $header .= "Content-Disposition: attachment; filename=".$real_name."\n\n"; $header .= $att_content."\n\n"; $header .= "--".$boundary."--"; } } else { $header .= "Content-Type: ".$text."; charset=UTF-8\n"; $header .= "Content-Transfer-Encoding: quoted-printable\n\n"; $header .= imap_8bit($body) . "\n\n"; } if(mail($to,$subj,"",$header) $this->Message .= '.'; else $this->Message = 'E-mail se nepodařilo odeslat'; return $this->Message; } function GetMime($filename) { $pos = strrpos($filename,'.'); if(($pos === 0) || (!$pos)) return false; $type = substr($pos, $pos + 1 , (strlen($filename) - $pos)); $mimetypes = array( 'doc' => 'application/msword', 'bin' => 'application/octet-stream', 'lha' => 'application/octet-stream', 'exe' => 'application/octet-stream', 'dll' => 'application/octet-stream', 'pdf' => 'application/pdf', 'eps' => 'application/postscript', 'ps' => 'application/postscript', 'xls' => 'application/vnd.ms-excel', 'ppt' => 'application/vnd.ms-powerpoint', 'swf' => 'application/x-shockwave-flash', 'tar' => 'application/x-tar', 'zip' => 'application/zip', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mp2' => 'audio/mpeg', 'mp3' => 'audio/mpeg', 'm3u' => 'audio/x-mpegurl', 'bmp' => 'image/bmp', 'gif' => 'image/gif', 'ief' => 'image/ief', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'jpe' => 'image/jpeg', 'png' => 'image/png', 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'xbm' => 'image/x-xbitmap', 'wrl' => 'model/vrml', 'vrml' => 'model/vrml', 'css' => 'text/css', 'html' => 'text/html', 'htm' => 'text/html', 'asc' => 'text/plain', 'txt' => 'text/plain', 'rtx' => 'text/richtext', 'rtf' => 'text/rtf', 'sgml' => 'text/sgml', 'sgm' => 'text/sgml', 'xml' => 'text/xml', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'qt' => 'video/quicktime', 'mov' => 'video/quicktime', 'avi' => 'video/x-msvideo', 'rar' => 'application/rar', ); return $mimetypes[$type]; } } ?> LÁZEŇSKÁ SENIOR GOLF TOUR 2024
Zaregistrujte se
Jméno:*
Příjmení:*
Email:*
Mobil:
Členské číslo:*

Korespondenční adresa
Ulice/obec a č.p.:
Obec/město:
PSČ:

Opište text z obrázku:*