Jump to content

adv

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by adv

  1. adv

    using smtp

    ok if nobody knows i`ll make it simple there is ams ( advanced mass sender ) or something like that and it uses multiple smtp`s connections at the same time and its sends from all simultaneously i just wanna know if how can i do that in php thanks
  2. adv

    using smtp

    please anybody who have experience with what i say :| ??
  3. adv

    using smtp

    thanks for answering vegas but what i did i good ? i mean with foreach function to loop though the entire list of smtp does it keeps it open when it loops over it and does it sends from all simultaneously?? and by the way i dont see any smtp_accept_max in the php.ini
  4. adv

    using smtp

    at least please can someone tell me if i can open 100 smtp connections from one server and use it to send simultaneously from all 100 ?
  5. adv

    using smtp

    this is the whole code <?php class SMTPClient { function SMTPClient ($SmtpServer, $SmtpPort, $SmtpUser, $SmtpPass, $from, $to, $subject, $body){ $this->SmtpServer = $SmtpServer; $this->SmtpUser = base64_encode ($SmtpUser); $this->SmtpPass = base64_encode ($SmtpPass); $this->from = $from; $this->to = $to; $this->subject = $subject; $this->body = $body; if ($SmtpPort == "") $this->PortSMTP = 25; else $this->PortSMTP = $SmtpPort; } function SendMail () { if ($SMTPIN = fsockopen ($this->SmtpServer, $this->PortSMTP)) { fputs ($SMTPIN, "EHLO localhost\r\n"); $talk["hello"] = fgets ( $SMTPIN, 1024 ); fputs($SMTPIN, "auth login\r\n"); $talk["res"]=fgets($SMTPIN,1024); fputs($SMTPIN, $this->SmtpUser."\r\n"); $talk["user"]=fgets($SMTPIN,1024); fputs($SMTPIN, $this->SmtpPass."\r\n"); $talk["pass"]=fgets($SMTPIN,256); fputs ($SMTPIN, "MAIL FROM: <".$this->from.">\r\n"); $talk["From"] = fgets ( $SMTPIN, 1024 ); fputs ($SMTPIN, "RCPT TO: <".$this->to.">\r\n"); $talk["To"] = fgets ($SMTPIN, 1024); fputs($SMTPIN, "DATA\r\n"); $talk["data"]=fgets( $SMTPIN,1024 ); fputs($SMTPIN, "To: <".$this->to.">\r\nFrom: <".$this->from.">\r\nSubject:".$this->subject."\r\n\r\n\r\n".$this->body."\r\n.\r\n"); $talk["send"]=fgets($SMTPIN,256); //CLOSE CONNECTION AND EXIT ... fputs ($SMTPIN, "QUIT\r\n"); fclose($SMTPIN); } return $talk; } } /* smtps are in file user:pass:host user1:pass1:host1 */ $file=file($argv[1]); if(!$file) die('Cannot open '.$argv[1]); $to = 'test1@test.com'; $from = 'test@test.com'; $subject = 'test'; $body = 'hello all'; foreach($file as $files){ list($smtp_server,$smtp_user,$smtp_pass)=explode(':',$files); $SMTPMail = new SMTPClient ($smtp_server, $smtp_port, $smtp_user, $smtp_pass, $from, $to, $subject, $body); $SMTPChat = $SMTPMail->SendMail(); if($SMTPChat) echo 'mail have been sent to '.$to; } ?> i`ve tried like this but i think its sending it one by one and nothing reaches in mail :|
  6. adv

    using smtp

    i have this script below that sends mail using smtp but the thing is this does it keeps all smtp connections open and does it sends from it simultaneously <?php include('SMTPconfig.php'); include('SMTPClass.php'); /* smtps are in file user:pass:host user1:pass1:host1 */ $file=file('smtp.txt'); $smtp_port='25'; $to = 'aa@aa.com'; $from = 'test@test.com'; $subject = 'test'; $body = 'hello all'; foreach($file as $files){ list($smtp_user,$smtp_pass,$smtp_server)=explode(':',$files); $SMTPMail = new SMTPClient ($smtp_server, $smtp_port, $smtp_user, $smtp_pass, $from, $to, $subject, $body); $SMTPChat = $SMTPMail->SendMail(); } ?>
  7. adv

    echo issue

    your exactly right analog thanks alot man
  8. adv

    echo issue

    no CLUEL3SS i`ve put an new line just to show what i did earlier you didn`t read the post
  9. adv

    echo issue

    sorry maxudaskin but you understood me wrong :| i dont want to display from a table some lines i just want to show when i execute in linux when i do something like this : <?php for($i=0;$i<=10000;$i++){ echo $i; } ?> i want to show like this [adv@localhost tmp]# php aaa showing -> ascendent from 0 to 10000 to show the increasing numbers in just one line
  10. adv

    echo issue

    what i`m saying is in a for loop its echoes likes this [adv@localhost tmp]# php aaa showing -> 0 showing -> 1 showing -> 2 showing -> 3 showing -> 4 showing -> 5 showing -> 6 showing -> 7 showing -> 8 showing -> 9 showing -> 10 and the thing is i want to show it just like this [adv@localhost tmp]# php aaa showing -> ascendent from 0 to 10 repeatedly
  11. adv

    echo issue

    hello i have one issue <?php for($i=0;$i<=10;$i++){ echo $i; } ?> it echoes 0123445678910 but the thing is how i can do it like with numbers to echo just one line and ascendent from 0 to 10 like this " 23 of 10000 viewed " something like that
  12. how to open a site with curl that has frames ? when ive tried it gives "your broswer does not support frames" ...
  13. adv

    smtp problem

    anybody please ?!?
  14. <?php $SMTP = fsockopen("smtp.libero.it", 25); $InputBuffer = fgets($SMTP, 1024); fputs($SMTP, "HELO hello\r\n"); fputs($SMTP, "MAIL From: <testing@libero.it>\r\n"); fputs($SMTP,"RCPT TO: <testinggs@libero.it>\r\n"); $InputBuffer = fgets($SMTP, 1024); echo $InputBuffer; ?> how do i get the server/smtp response to show if the email is valid or not? 550 RCPT TO:<testinggs@libero.it> User unknown 250 RCPT TO:<good@libero.it> OK
  15. ok i dont get it heres the code <?php function doRequest($method, $url, $referer, $agent, $cookie, $vars) { $ch=curl_init(); curl_setopt($ch, CURLOPT_URL, $url); if($referer != "") { curl_setopt($ch, CURLOPT_REFERER, $referer); } curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie); if ($method == 'POST') { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $vars); } if (substr($url, 0, 5) == "https") { curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); } $data = curl_exec($ch); curl_close($ch); if ($data) { return $data; } else { return curl_error($ch); } } function get($url, $referer, $agent, $cookie) { return doRequest('GET', $url, $referer, $agent, $cookie, 'NULL'); } function post($url, $referer, $agent, $cookie, $vars) { return doRequest('POST', $url, $referer, $agent, $cookie, $vars); } $url='https://selfcare.tiscali.it/unit/selfcare/it_usersuggest?application=username_suggest&node=gid&us=usernametest&dY='; $ref='https://selfcare.tiscali.it/unit/selfcare/it_selfcare'; $ag='Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12'; $get=get($url,$ref,$ag,'cookie'); echo $get; ?> the data that i have i got it with live http headers .. https://selfcare.tiscali.it/unit/selfcare/it_usersuggest?application=username_suggest&node=gid&us=rosso&dY= GET /unit/selfcare/it_usersuggest?application=username_suggest&node=gid&us=rosso&dY= HTTP/1.1 Host: selfcare.tiscali.it User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: https://selfcare.tiscali.it/unit/selfcare/it_selfcare Cookie: __utma=133587473.401666586.1289989653.1289989653.1289989653.1; __utmb=133587473.2.10.1289989653; __utmc=133587473; __utmz=133587473.1289989653.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); WT_FPC=id=151.47.94.116-212705376.30115394:lv=1289989680598:ss=1289989655354; CLASS=A2 HTTP/1.1 200 OK Date: Wed, 17 Nov 2010 10:33:49 GMT Server: Apache/2.2.15 (Unix) mod_jk/1.2.25 Content-Length: 242 Connection: close Content-Type: text/xml
  16. thanks for anwering Rifts .. i see your point but that is on its site on tiscali.it .. i cant modify nothing there and ive tried to search if its .php but nothing still 403 https://selfcare.tiscali.it/unit/selfcare/it_usersuggest.jsp?application=username_suggest&us=asdad i`ve tried with .jsp .aspx aspx .php nothing ...
  17. GET /unit/selfcare/it_usersuggest?application=username_suggest&node=gid&us=asdsadas&dY= this is the only file/directory that it uses ... nothing else .. there must be a trick which i cant see it maybe some of u knows it
  18. no i dont but it isnt any way to get pass that ...
  19. i dont know https://selfcare.tiscali.it/unit/selfcare/it_usersuggest/ ... i`m unsure
  20. hey i`m in a dilema .. i`m trying a script to validate emails from tiscali for my site but i always get this error https://selfcare.tiscali.it/unit/selfcare/it_usersuggest?application=username_suggest&us=asdad 403 Forbidden Request forbidden by administrative rules. how can i get pass this .. is there a way ? thanks
  21. i just thought of that and i didnt test it .. but when it test it worked exactly as i wanted .. dunno how i made it ) if someone needs a combination like that the code from above works
  22. hello i`m trying something but cant seem to get it working it purpose is this ; open 2 files goodies.txt has : heavy big small goodies2.txt has : rock toy brick and i want it to pick from goodies.txt first word and combine it to all words in goodies2.txt something like this: heavy-rock heavy-toy heavy-brick and then big-rock big-toy big-brick read file <?php $file=file('goodies.txt'); $file1=file('goodies2.txt'); foreach($file as $files){ $split=explode("\n",$files); for($i=0;$i<count($file1);$i++) { $combine=$split[0].$file1[$i]; echo $combine; } } } i dont know if my logic is good in this case :|
  23. adv

    check username

    thanks OldWest but i`m curious what are other opinions
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.