<?php //polaczenie z baza { $header = "From: ktos@serwer.pl \nContent-Type:". ' text/plain;charset="iso-8859-2"'. "\nContent-Transfer-Encoding: 8bit"; } ?>
Ten skrypt wysyła tylko zwykły tekst, czy ktoś wie jak wysłać sformatowany tekst w html?
<?php //polaczenie z baza { $header = "From: ktos@serwer.pl \nContent-Type:". ' text/plain;charset="iso-8859-2"'. "\nContent-Transfer-Encoding: 8bit"; } ?>
<?PHP $adresat = 'malacz@os.pl'; // pod ten adres zostanie wysłana // wiadomosc @$email = $_POST['email']; @$content = $_POST['content']; $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $header = "From: ktos@serwer.pl \nContent-Type:". ' text/plain;charset="iso-8859-2"'. "\nContent-Transfer-Encoding: 8bit"; else ?>
<?PHP $adresat = 'malacz@os.pl'; // pod ten adres zostanie wysłana // wiadomosc @$email = $_POST['email']; @$content = $_POST['content']; $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $header = "From: ktos@serwer.pl \nContent-Type:". ' text/plain;charset="iso-8859-2"'. "\nContent-Transfer-Encoding: 8bit"; else ?>
$header = "From: ktos@serwer.pl \nContent-Type:". ' text/plain;charset="iso-8859-2"'. "\nContent-Transfer-Encoding: 8bit";
$header = "From: ktos@serwer.pl \nContent-Type:". ' text/plain;charset="iso-8859-2"'. "\nContent-Transfer-Encoding: 8bit";
$header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
<?php $ip = "fffa:3306"; $user = "asf"; $pass = "ff"; $sql = "ff"; $adresat = 'bleble@ow.pl'; // pod ten adres zostanie wysłana // wiadomosc @$email = $_POST['email']; @$content = $_POST['content']; if (!$con) { } { $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; } ?>
if (!$con) { }
<?php $ip = "127.0.0.1:3306"; $user = "login"; $pass = "hasło"; $sql = "baza"; $adresat = 'strona@os.pl'; // pod ten adres zostanie wysłana // wiadomosc @$email = $_POST['email']; @$content = $_POST['content']; { $header = 'MIME-Version: 1.0' . "\r\n"; $header .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; } ?>
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `account` -- ---------------------------- DROP TABLE IF EXISTS `account`; CREATE TABLE `account` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Identifier', `username` varchar(32) NOT NULL DEFAULT '', `sha_pass_hash` varchar(40) NOT NULL DEFAULT '', `gmlevel` tinyint(3) UNSIGNED NOT NULL DEFAULT '0', `sessionkey` longtext, `v` longtext, `s` longtext, `email` text, `joindate` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_ip` varchar(30) NOT NULL DEFAULT '127.0.0.1', `failed_logins` int(11) UNSIGNED NOT NULL DEFAULT '0', `locked` tinyint(3) UNSIGNED NOT NULL DEFAULT '0', `last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `online` tinyint(4) NOT NULL DEFAULT '0', `expansion` tinyint(3) UNSIGNED NOT NULL DEFAULT '0', `mutetime` bigint(40) UNSIGNED NOT NULL DEFAULT '0', `locale` tinyint(3) UNSIGNED NOT NULL DEFAULT '0', `vote` int(255) NOT NULL, `timestamp` int(11) DEFAULT NULL, `points` int(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `idx_username` (`username`), KEY `idx_gmlevel` (`gmlevel`) ) ENGINE=MyISAM AUTO_INCREMENT=120225 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Account System'; -- ---------------------------- -- Records of account -- ---------------------------- INSERT INTO `account` VALUES ('93998', 'Powe', 'bfff7d4b4de549187cf1cbc9329f71710caa1b8b', '0', '156EA6D04AB868F36B644695E454C177BFEBCEC9FA73492CD99D7CA5F1AC17F49DE53CB371989C3D', '6559A64347C9F69B1B8DBE4F06514822FD3F81CE8176FBE1E42BA49B7832143A', 'CE84E25D2A0ED6EECE87A310C5C716AAB49B6F6B0AB0D05C601B4302C1D48E2F', 'test@os.pl', '2009-05-29 18:37:27', '81.219.102.131', '5', '0', '2009-07-07 13:32:21', '0', '1', '0', '0', '0', NULL, '0');