Skype - Mirc - Irc - Icq - Mail Güvenliği
Hotmaile Gönderilen Otomatik Hesap Etkinleştirme Mailine Resim Ekle Sorunu
Hotmaile Gönderilen Otomatik Hesap Etkinleştirme Mailine Resim Ekle Sorunu
-
Sorunlu kod icerigi aşagıda giden mailler turkce karakter hatası veriyor ve html kodlar mail iceriginde duz metin olarak goruntuleniyor ornek hotmaile giden maillerde maill deki html img kod sadece duz bir metin sekilde gorunuyor nerelerini karakter seti ve html kod sorununu nasıl duzeltebilirim yardım ederseniz sevinirim
----------------------------------
class mailer
{
var $sender; // Name to be displayed in From field. @access private @var string
var $outgoing; // Outgoing email address @access private @var string
var $incoming; // Incoming email address @access private @var string
var $message; // Email body @access private @var string
var $subject; // Email Subject @access private @var string
var $server; // Mail Server @access private @var string
var $list; // Formatted Bcc list @access private @var string
var $recipient; // Recipient for single send mode @access private @var string
var $bcc; // Blind Carbon Copy recipients @access private @var array
var $headers; // Headers to be used for email @access private @var array
var $html; // Determines whether message will be sent in HTML format. @access private @var boolean
function mailer($in, $out, $sender, $html)
{
$this->outgoing = $out;
$this->incoming = $in;
$this->sender = $sender;
$this->html = false;
$this->server = 'localhost';
$this->recipient = '';
$this->message = '';
$this->subject = '';
$this->list = '';
$this->bcc = array();
$this->headers = array();
}
function setBcc($email)
{
$this->bcc[] = $email;
}
function doBcc()
{
if (!$this->bcc) {
return false;
}
$this->list .= implode(', ', $this->bcc);
$this->setHeader('Bcc: ' . $this->list);
return true;
}
function setRecipient($recipient)
{
$this->recipient = $recipient;
}
function setSubject($subject)
{
$subject = str_replace(array("\n", "\r"), array(' ', ' '), $subject);
$this->subject = $subject;
}
function setMessage($message)
{
$this->message = $message;
}
function setHeader($header)
{
$header = str_replace(array("\n", "\r"), array(' ', ' '), $header);
$this->headers[] = $header;
}
function setServer($server)
{
$this->server = $server;
}
function doSend()
{
if (!strlen($this->subject)) {
return false;
}
$this->setHeader('From: ' . $this->sender . ' <' . $this->outgoing . '>');
$this->setHeader('Reply-To: ' . $this->incoming);
if (!strlen($this->recipient)) {
$this->doBcc();
$to = $this->sender . ' <' . $this->outgoing . '>';
} else {
$to = $this->recipient;
}
if ($this->server) {
@ini_set('SMTP', $this->server);
}
if (mail($to, $this->subject, $this->message, implode("\n", $this->headers))) {
return true;
} else {
return false;
}
}
}( Not: bu arada konuyu en basta yanlıs yere acmısım kusura bakmayın :/ )