Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
PHPmailer i hr dijakritici

 
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
nemogirl



Joined: 27 Oct 2004
Posts: 387
Location: istra

PostPosted: 01.04.2011 09:05    Post subject: PHPmailer i hr dijakritici Add user to your forum ignore list Reply with quote

imam kontakt formu. ajaxom dohvacam podatke i saljem pomocu PHPmailera na mail.
Ali... hr dijakritici se ne prikazuju dobro Sad

apsolutno svi fajlovi su mi u utf-8 encodingu, čak forsam to i kroz formu

Code:
<form name="contact" accept-charset="utf-8">


i kroz html kod za slanje
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><strong>Ime:</strong> <?=$name;?></p>
<p><strong>Mail:</strong> <?=$email;?></p>
<p><strong>Poruka:</strong><br /><?=$message;?></p>

</body>
</html>


i kroz PHPmailer

Code:
$mail = new PHPMailer();
$mail->CharSet = 'UTF-8';


no opet bezuspješno. guglam i čitam da PHP ima problema s utf-om i probavala sam kroz neke funkcije to riješiti no opet niš.

help!
Back to top
View user's profile Send private message
liftboy



Joined: 20 Jan 2005
Posts: 298

PostPosted: 01.04.2011 09:45    Post subject: Add user to your forum ignore list Reply with quote

imao sam i ja takvih problema, pa se na kraju ispostavilo da je do mail clienta i servera, na yahoo sam imao problema isto tako , na gmail-u je prolazilo kako treba
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mile



Joined: 10 Sep 2003
Posts: 1328
Location: Jeruzalem

PostPosted: 01.04.2011 10:02    Post subject: Add user to your forum ignore list Reply with quote

Evo što ja koristim, možda ti pomogne:

Code:

$subject = "=?UTF-8?B?" . base64_encode("Nova pristupnica") . "?=";
$mailheaders = "From: =?UTF-8?B?" . base64_encode($_POST['name']) . "?= <" . $_POST['email'] . "> \r\n";
$mailheaders .= "Reply-To: " . $_POST['email'] . "\r\n";
$mailheaders .= "MIME-Version: 1.0\r\n";
$mailheaders .= "Content-Type: text/html; charset=utf-8\r\n";
$mailheaders .= "Content-Transfer-Encoding: 8bit\r\n\r\n";


_________________
mile.is
Back to top
View user's profile Send private message Visit poster's website
nemogirl



Joined: 27 Oct 2004
Posts: 387
Location: istra

PostPosted: 01.04.2011 10:53    Post subject: Add user to your forum ignore list Reply with quote

hvalaaaaaa mile! Very Happy
super si vuk

profunkcioniralo sve
Back to top
View user's profile Send private message
mile



Joined: 10 Sep 2003
Posts: 1328
Location: Jeruzalem

PostPosted: 01.04.2011 15:35    Post subject: Add user to your forum ignore list Reply with quote

np Wink

_________________
mile.is
Back to top
View user's profile Send private message Visit poster's website
nemogirl



Joined: 27 Oct 2004
Posts: 387
Location: istra

PostPosted: 01.04.2011 23:08    Post subject: Add user to your forum ignore list Reply with quote

hehe.. volim kad inspiriram Razz
Back to top
View user's profile Send private message
liftboy



Joined: 20 Jan 2005
Posts: 298

PostPosted: 02.04.2011 10:14    Post subject: Add user to your forum ignore list Reply with quote

brao mile! vuk
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group