*jancis38* Posted December 2, 2007 Report Share Posted December 2, 2007 Vai kāds ludzu nevarētu padalīties ar e-pasta izsūtīšanas skriptu? :)) Link to comment Share on other sites More sharing options...
Kavacky Posted December 2, 2007 Report Share Posted December 2, 2007 Manuālis varētu: bool mail ( string $to, string $subject, string $message [, string $additional_headers [, string $additional_parameters]] ) Link to comment Share on other sites More sharing options...
*jancis38* Posted December 2, 2007 Author Report Share Posted December 2, 2007 nja vis sk. tas man par sarežģītu. :/ Link to comment Share on other sites More sharing options...
blackhalt Posted December 2, 2007 Report Share Posted December 2, 2007 Example#1 Sending mail. http://lv.php.net/manual/en/function.mail.php Link to comment Share on other sites More sharing options...
MC_ Posted December 3, 2007 Report Share Posted December 3, 2007 Vai kāds ludzu nevarētu padalīties ar e-pasta izsūtīšanas skriptu? :)) <?php function MyMail($to,$msg){ if (strtoupper(substr(PHP_OS,0,3)=='WIN')) { $eol="\r\n"; } elseif (strtoupper(substr(PHP_OS,0,3)=='MAC')) { $eol="\r"; } else { $eol="\r\n"; } $headers .= "Reply-To: info@mansdomens.lv".$eol; $headers .= "MIME-Version: 1.0".$eol; $headers .= "Reply-To: info <info@mansdomens.lv>".$eol; $headers .= "Content-type: text/plain; charset=utf-8"; //$SMTP $handle = fsockopen("localhost", 25, $errno, $errstr, 30); if( !$handle ){ return false; } $res=fgets($handle,256); if(substr($res,0,3)!="220"){ return false; } fputs($handle, "HELO mansdomens.lv".$eol); $res=fgets($handle,256); if(substr($res,0,3)!="250"){ return false; } fputs($handle, "MAIL FROM: info@mansdomens.lv".$eol); $res=fgets($handle,256); if(substr($res,0,3)!="250"){ return false; } fputs($handle, "RCPT TO: ".$to.$eol); $res=fgets($handle,256); if(substr($res,0,3)!="250"){ return false; } fputs($handle, "DATA".$eol); $res=fgets($handle,256); if(substr($res,0,3)!="354"){ return false; } fputs($handle, "To: $to".$eol."From: info@mansdomens.lv".$eol."Subject: mansdomens.lv".$eol."$headers".$eol.$eol."$msg".$eol.".".$eol); $res=fgets($handle,256); if(substr($res,0,3)!="250"){ return false; } fputs($handle, "QUIT\n"); fclose($handle); } ?> Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 3, 2007 Report Share Posted December 3, 2007 tas man par sarežģītu. :/ njaa... gadijums..... kur vel vienkarsak ? mail('kam_sutit@bla.lv', 'Sitais ir subjekts _ tema ??', 'Te atrodas pats tekstc '); P.S. tas protams pats primitivakais variants.... Link to comment Share on other sites More sharing options...
Paulinjsh Posted December 3, 2007 Report Share Posted December 3, 2007 http://www.phpguru.org/static/mime.mail.html ar visiem piemēriem! Link to comment Share on other sites More sharing options...
*jancis38* Posted December 3, 2007 Author Report Share Posted December 3, 2007 labi, liels paldies. bet lai netaisītu jaunu topiku, prasīšu tepat, vai gadijumā kāds šoreiz nevar padalīties ar vote php skriptu? Link to comment Share on other sites More sharing options...
black Posted December 3, 2007 Report Share Posted December 3, 2007 Ja gadījumā izmantosi htmlMimeMail un gribēsi sūtīt tekstu latviešu valodā, iesaku izmantot veco htmlMimeMail versiju. Tikko pavadīju jauku pusstundu, cenšoties saprast, kāpēc httpMimeMail manu "Glāžšķūņu rūķītis" pārveido par "Glāžšķūņurūķītis". Izrādās, jaunajā (priekš PHP5) versijā ir bugs metodē "encodeHeader()". Pārkopēju metodi no vecās versijas, tagad viss bumbās. Link to comment Share on other sites More sharing options...
Kavacky Posted December 3, 2007 Report Share Posted December 3, 2007 vai gadijumā kāds šoreiz nevar padalīties ar vote php skriptu?Nē, te nav nekāds sociālās palīdzības dienests. www.hotscripts.com Link to comment Share on other sites More sharing options...
Paulinjsh Posted December 5, 2007 Report Share Posted December 5, 2007 o black tnx, arī pie šitās figņas pavadīju labu laiku un tad arī atmetu ar roku atrast kāpēc jamais tā dara! Link to comment Share on other sites More sharing options...
Recommended Posts