RE: Kodovani v emailech

From: <petr.novak (zavinac) vitana.cz>
Date: 04. 02. 2004, 08:20 CET
Tenhle skript pro odesilani mi psal kamarad, ja v tom nejsem kovanej, tak
prosim i dalsi prispevatele v tomto threadu, mluvte na me pomalu a
srozumitelne... :-)

<?
function nahrada($text)
 {
  $text=ereg_replace("#.*#","",$text);
  $text=ereg_replace("_"," ",$text);
  $text=ucfirst($text);
  return ($text);
 }
function nahrada_podtrzitka($text)
 {
  $text=ereg_replace("_"," ",$text);
  $text=ucfirst($text);
  return ($text);
 }


$strTo = "cilovy@email.cz";
$strSubject = "Subjekt";
$headers = "Content-Type: text/plain; charset=win-1250\n"; //nastavení na
plain text a kódováni Win//
$headers .= "Return-Path: <webmaster@mail.cz>\n"; //v případě problémů se
odešle chybová hláška na mail webmastera//
$headers .= "charset=win-1250\n"; //nastavení kódování na výstupu - Win//

if ($REQUEST_METHOD=='GET')
 {
  $pole=$HTTP_GET_VARS;
 } else $pole=$HTTP_POST_VARS;


$strFrom = $pole['email'];
$strBody='';
$br=chr(13).chr(10);

if ($pole['mzo0']!='')  $strBody.='Mám zájem o informace o: ' .
$pole['mzo0'] . $br;
if ($pole['mzo1']!='')  $strBody.='Mám zájem o informace o: ' .
$pole['mzo1'] . $br;
if ($pole['mzo2']!='')  $strBody.='Mám zájem o informace o: ' .
$pole['mzo2'] . $br;
if ($pole['mzo3']!='')  $strBody.='Mám zájem o informace o: ' .
$pole['mzo3'] . $br;

$strBody.='Firma: ' . $pole['firma'] . $br;
$strBody.='Příjmení a jméno: ' . $pole['prijmeni_a_jmeno'] . $br;
$strBody.='Adresa: ' . $pole['adresa'] . $br;
$strBody.='Telefon: ' . $pole['telefon'] . $br;
$strBody.='E-mail: ' . $pole['email'] . $br;
$strBody.='Vzkaz: ' . $pole['vzkaz'] . $br;

if (@mail ($strTo, $strSubject, $strBody, "From: $strFrom\nX-Mailer: php"))
      echo "Zpráva byla úspěšně odeslána.";
else
      echo "Zprávu se nepodařilo odeslat.";
?>




*****************************************************************************
This document should only be read by those persons to whom it is addressed
and is not intended to be relied upon by any persons without subsequent
written confirmation of its contents. Accordingly, Rieber & Son
disclaim all responsibility and accept no liability (including in negligence)
for the consequences for any person acting, or refraining from acting, on
such information prior to the receipt by those persons of subsequent
written confirmation.

If you have recieved this E-mail message in error, please notify us
immediately by telephone. Please also destroy and delete the message from
your computer.

Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this E-mail message is strictly 
prohibited.

Rieber & Son ASA
postmaster@rieberson.no
Bergen, Norway

*****************************************************************************
Received on Wed, 4 Feb 2004 08:20:03 +0100

This archive was generated by hypermail 2.1.8 : 04. 02. 2004, 08:20 CET