<?php $imgName = "test.jpeg"; $bigJPG; $smallJPG; $randValue; /* $byteArray1 = $_REQUEST['myCapStream']; $headline1 = $_REQUEST['headline']; $mainText1 = $_REQUEST['mainText']; */ //echo "ala".$headline."alal"; switch($_GET['action']) { //sprawdza zmienna action przekazana w linku (jaka operacja ma byc wykonana) case 'savePic': savePicture($GLOBALS["HTTP_RAW_POST_DATA"]); break; case 'sendMail': sendEmail( $_REQUEST['email'],$_REQUEST['title'],$_REQUEST['text1'],$_REQUEST['text2'],$_REQUEST['text3'],$_REQUEST['dotText1'],$_REQUEST['dotText2'],$_REQUEST['dotText3']); break; } function savePicture($byteArray){ $_SESSION['randValue']=$randValue; $bigJPG = "bigJPG_".$randValue.".jpeg"; /* $img = imagecreatefromjpeg("http://made-in-china.livenet.pl/mailing/capPics/bigJPG_1706198673.jpeg") $sW = imagesx($img); $sH = imagesy($img); $tempImg = imagecreatetruecolor(650, 810); imagecopyresampled($tempImg, $img, 0, 0, 0, 0, 650, 810, $sW, $sH); imagejpeg($tempImg, "resized".$randValue); */ } function sendEmail($email,$title,$text1,$text2,$text3,$dotText1,$dotText2,$dotText3){ //$msg = "text1=".$text1<br>." text2= ".$text2<br>."aasas".<img src = 'capPics/'.$bigJPG >; $randValue = $_SESSION['randValue']; //$pic = <img src="http://www.made-in-china.livenet.pl/mailing/capPics/bigJPG_1277522297.jpeg"> $msg =" <title>KingSquare</title> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> <table align='center' border='0' cellpadding='0' cellspacing='0'> <tbody width='651' height='1190'><tr> <td colspan='2' height='414' width='651'> <div style=\" width:100%; float:left; position:relative;\"> <img src=\"http://king-dom.com.pl/mailing/KingSquare_01.jpg\"/> <p style=\"position:absolute; bottom:0px; left:20px; width:420px; font-size:20px; color:#fff; letter-spacing:-1px; font-family:Verdana, Geneva, sans-serif\">Mamy zaszczyt zaproponować Państwu przestrzeń handlową w nowej krakowskiej galerii.</p> </div></td> </tr> <tr> <td style='font-family: tahoma,arial,helvetica,sans-serif; font-weight: bold;' height='273' valign='top' width='415'> <br> <ul style='margin: 14px; padding: 0px;'> <li><font size='3'>$dotText1<br></font></li> <li><font size='3'>$dotText2<br></font></li> <li><font size='3'>$dotText3 <br><br> </a><a style='font-family: tahoma,arial,helvetica,sans-serif; font-weight: normal; color: rgb(204, 0, 0);' href='http://king-dom.com.pl' target='blank'><font size='2'>www.king-dom.com.pl ť</font> </a></td> <td height='273' width='236'> <img src='http://king-dom.com.pl/mailing/KingSquare_03.jpg'></td> </tr> <tr> <td colspan='2' height='87' width='651'> <p style=\"width:611px; float:left; text-align:center; font-size:20px; border-bottom:1px solid #333; border-top:1px solid #333; padding:20px; color:#333; letter-spacing:-1px; font-family:Verdana, Geneva, sans-serif\">Poniżej zamieszczamy propozycje lokali, które, naszym zdaniem najlepiej odpowiadają specyfice Państwa firmy.</p></td> </tr> <tr> <td colspan='2' height='416' width='651'> <a style='font-family: arial,helvetica,sans-serif;' href='http://king-dom.com.pl/mailing/King_Square_Oferta_01.gif' target='blank'> <img src='http://king-dom.com.pl/mailing/KingSquare_05.gif' border='0'> </a><br style='font-family: arial,helvetica,sans-serif;'><span style='font-family: arial,helvetica,sans-serif;'> <font size='2'><font style='font-weight: bold; color: rgb(204, 0, 0);' size='3'>$text2</font>, $text3.</font></span><br><br style='font-family: arial,helvetica,sans-serif;'><a style='font-family: tahoma,arial,helvetica,sans-serif; font-weight: normal; color: rgb(204, 0, 0);' href='http://www.made-in-china.livenet.pl/mailing/capPics/bigJPG_$randValue.jpeg' target='blank'><font style='font-family: arial,helvetica,sans-serif;' size='2'>zobacz mapkę w większym formacie ť</font></a><br><a style='font-family: tahoma,arial,helvetica,sans-serif; font-weight: normal; color: rgb(204, 0, 0);' href='http://king-dom.com.pl/mailing/King_Square_Oferta_01.gif' target='blank'> <br><br> </a></td> </tr> </tbody></table>"; $odbiorca = $email; $temat = $title; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; } ?>
Wysylam maila z contentem html'owym , jest chyba jakis problem z kodowaniem bo zamiast polskich znakow mam krzaki , moze ktos na to spojrzec prosze.