[PHP] why does a html mail send as text ?

2009-02-04 Thread Bulend Kolay

I use php-5.2.6 and apache2.2.x on opensuse11

I have a file called mailsend.php to send a mail of html format.
the server sends the mail form of html format. But I get it as text instead 
of html.

default_mimetype is set as text/html in php.ini file.

How can I correct this ?





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Bulend Kolay
I attached my code 


Thanks



Show your code, but it sounds like maybe the HTML flag is not set.  
Consider using a class like phpmailer or the mime mail class from  
phpclasses.org


Bastien

Sent from my iPod

On Feb 4, 2009, at 6:28, "Bulend Kolay"  wrote:


I use php-5.2.6 and apache2.2.x on opensuse11

I have a file called mailsend.php to send a mail of html format.
the server sends the mail form of html format. But I get it as text  
instead of html.

default_mimetype is set as text/html in php.ini file.

How can I correct this ?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



   
 
 Adı - Soyadı
  
 '.$im_val_isim.'
   
   
 
 Firma ünvanı ve şirketin açık 
ismi
  
 '.$im_val_firma.'
   
   
  
 Varsa şirket ortaklarının isimleri 
 
  
 '.$im_val_ortak_isimleri.'
   
   
 *
 Adres
  
 '.$im_val_adres.'
   
   
 *
 İlçe
  
 '.$im_val_ilce.'
   
   
 *
 İl
  
 '.$im_val_sehir.'
   
   
 *
 İş Tel
  
 '.$im_val_tel_is.'
   
   
  
 Cep Tel
  
 '.$im_val_tel_cep.'
   
   
  
 Fax
  
 '.$im_val_fax.'
   
 
 
 
 
 
 
 

   
  
 Yalnız bayiliği mi istiyorsunuz?
  
 '.$im_val_yalniz_bayiligi.'
   
   
  
 Vereceğiniz banka teminat mektubunun miktarı 
nedir?
  
 '.$im_val_teminat_miktar.'
   
   
  
 Bayilik istediğiniz İl veya İlçeler 
nedir?
  
 '.$im_val_istenen_il_ilce.'
   
   
  
 Merkeziniz hangi şehirde olacak?
  
 '.$im_val_merkez_sehir.'
   
   
  
 Bölgenizde şube açmak, bayilik vermek 
istiyormusunuz, hangi şehirlerde? 
  
 '.$im_val_bayilik_verilecek_yerler.'
   
   
  
 Teşhir salonunuz kaç metre karedir?
  
 '.$im_val_teshir_salonu.'
   
   
  
 Teşhir salonunuz merkezde mi, cadde üzerinde 
mi, site içinde mi?
  
 '.$im_val_teshir_salonu_konum.'
   
   
  
 Kendinize ait veya anlaşmalı, TSEli veya 
normal servisiniz var mı?
  
 '.$im_val_anlasmali_servis.'
   
   
  
 Tavsiye edeceğiniz servislerin 
şehirleri ve firma adları nelerdir?
 
  
 '.$im_val_tavsiye_servis.'
   
   
  
 İlk siparişiniz kaç adet 
olacak?
  
 '.$im_val_ilk_siparis.'
   
 
';//end of $icerik_gelen


if ($step==1)
{
$subject = 'Apply Form';
$to = 'bma...@ihlas.net.tr';
   $tags_start = '';
   $tags_end = '';
$icerik = $tags_start;
$icerik = $icerik.$icerik_gelen;
$icerik = $icerik.$tags_end;

$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=windows-1254' . "\r\n";
   if (mail($to, $subject, $icerik, $headers))
   {
   $email_sent=TRUE;
   }
}



?>

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml";>


Untitled Document

<!--
.style11 {font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: 
#00; }
.style11_italik {font-family: Arial, Helvetica, sans-serif; font-size: 11px; 
color: #00; font-style:italic}
.style13 {
   font-family: Arial, Helvetica, sans-serif;
   font-size: 12px;
   color: #FF;
}
.style6 {
   font-size: 14px;
   color: #003366;
   font-family: Tahoma;
}
-->





 
   
 Bayi 
Form
 
   
 
 

if ($email_sent)
{
   echo '';
   echo '';
   echo '';
   echo 'Başvurunuz gönderilmiştir. Teşekkür ederiz.';
   echo '';
   echo '';
   echo '';
}

if (!$email_sent && $step==1)
{
   echo '';
   echo '';
   echo '';
   echo '!!!Başvurunuz gönderilmemiştir. Lütfen tekrar 
deneyiniz.';
   echo '';
   echo '';
   echo '';
}

?>  
 



 
   
 
   * alanların doldurulması zorunludur.
   
 
 
   
 
   *
   Adı - Soyadı
    
   
 
   
 
 
   *
   İl
    
   
 
'.$sehir[$i][1].'';
}
?>  
 

   
 
 
   *
   İş Tel
    
   
 
 
    
    
    
    
 
 
   
 
    
   Bütün araçlarımızın bayiliğini 
istiyormusunuz?
    
   
 Evet 
 Hayır

   
 
 
    
    
    
   
 
 
 
 
   
   
   
 

 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Bulend Kolay
Ok it works. it comes as html,  
But  it comes with servername at From part.

That's to say, I get the mail no-re...@sitename.com@full.servername.com

How can I conceal the servername at the From part ?

Thanks  




2009/2/4 Bulend Kolay 


I attached my code
Thanks




 Show your code, but it sounds like maybe the HTML flag is not set.

 Consider using a class like phpmailer or the mime mail class from
phpclasses.org

Bastien

Sent from my iPod

On Feb 4, 2009, at 6:28, "Bulend Kolay"  wrote:

 I use php-5.2.6 and apache2.2.x on opensuse11


I have a file called mailsend.php to send a mail of html format.
the server sends the mail form of html format. But I get it as text
 instead of html.
default_mimetype is set as text/html in php.ini file.

How can I correct this ?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Looking the code quickly, the only thing I do differently is setting the
headers:

 //build the headers
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "From: \"Site Admin \n";


What mail client are you using? Does it / is it set to accept html mails?

--

Bastien

Cat, the other other white meat



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] why does a html mail send as text ?

2009-02-04 Thread Bulend Kolay

Thanks to Bastien
I think, I wrote wrong the expression
I have entered the string again as below
$headers .= "From: \"Site Admin\" \n";

the mail comes as html and also server name at from part doesn't appear.





Ok it works. it comes as html,  But  it comes with servername at From 
part.

That's to say, I get the mail no-re...@sitename.com@full.servername.com

How can I conceal the servername at the From part ?

Thanks


2009/2/4 Bulend Kolay 


I attached my code
Thanks




 Show your code, but it sounds like maybe the HTML flag is not set.

 Consider using a class like phpmailer or the mime mail class from
phpclasses.org

Bastien

Sent from my iPod

On Feb 4, 2009, at 6:28, "Bulend Kolay"  wrote:

 I use php-5.2.6 and apache2.2.x on opensuse11


I have a file called mailsend.php to send a mail of html format.
the server sends the mail form of html format. But I get it as text
 instead of html.
default_mimetype is set as text/html in php.ini file.

How can I correct this ?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Looking the code quickly, the only thing I do differently is setting the
headers:

 //build the headers
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "From: \"Site Admin \n";


What mail client are you using? Does it / is it set to accept html mails?

--

Bastien

Cat, the other other white meat



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] how call a variable in a text

2009-10-21 Thread Bulend Kolay

I 'll send a mail in html form using php5.

cat send.php
 There is a text $variable  trial. 
';

mail($to, $subject, $message, $headers) ;
?>

when I run send.php, I get the mail. But I can't call variable called 
variable. it comes as string.
How can I correct this? 



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How to prevent php actions ?

2008-09-10 Thread Bulend Kolay

I use php5.2.6, apache2.2, mysql5.0 on Opensuse11.0.

I set openbase-path in php.ini for every virtual host.  I set safemode as 
On.


But if a folder where located in different directory ( for instance 
/etc/file ) and the folder whose rights is 444 ( read for everyone ) I can 
read it.


How can I prevent that case except modsecurity ?





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php