PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- function get_data($smtp_conn)
- {
- $data="";
- {
- $data .= $str;
- }
- return $data;
- }
- $header.="From: =?windows-1251?Q?".str_replace("+","_",str_replace("%","=",urlencode('Максим')))."?= <login@mail.ru>\r\n";
- $header.="X-Mailer: The Bat! (v3.99.3) Professional\r\n";
- $header.="Reply-To: =?windows-1251?Q?".str_replace("+","_",str_replace("%","=",urlencode('Максим')))."?= <login@mail.ru>\r\n";
- $header.="X-Priority: 3 (Normal)\r\n";
- $header.="To: =?windows-1251?Q?".str_replace("+","_",str_replace("%","=",urlencode('Сергей')))."?= <qwe@asd.ru>\r\n";
- $header.="Subject: =?windows-1251?Q?".str_replace("+","_",str_replace("%","=",urlencode('проверка')))."?=\r\n";
- $header.="MIME-Version: 1.0\r\n";
- $header.="Content-Type: text/plain; charset=windows-1251\r\n";
- $header.="Content-Transfer-Encoding: 8bit\r\n";
- $text="привет, проверка связи.";
- $data = get_data($smtp_conn);
- ?>