Git Product home page Git Product logo

phpmailserv's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phpmailserv's Issues

Limited commands

Let me ask you, I am trying to add new commands, most unsuccessfully, the changes have no effect for some reason, maybe I am doing it wrong.

I'm editing the Client.class.php file, include this excerpt in Switch ()

case "WELCOME": $ this-> send ("Hellow hellow"); break;

On the client I'm calling it this way:

$fp = stream_socket_client("tcp://127.0.0.1:25", $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)
\n";
} else {
fwrite($fp, "Aloha");
while (!feof($fp)) {
print_r(fgets($fp, 1024));
$request .= 'User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) ';
$request .= "Gecko/20021204\r\n";
$request .= 'Accept: text/xml,application/xml,application/xhtml+xml,';
$request .= "Accept-Language: en-us, en;q=0.50 \r\n";
$request .= "Accept-Encoding: gzip, deflate, compress;q=0.9\r\n";
$request .= "Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66 \r\n";
$request .= "Keep-Alive: 300 \r\n";
$request .= "Connection: keep-alive \r\n";
$login = "user@domain";

fputs($fp, $request);
fputs($fp, "AUTH LOGIN \r\n");
fputs($fp, base64_encode($login) . "\r\n");
fputs($fp, "WELCOME");
fputs($fp, "QUIT \r\n");
}
fclose($fp);
}](url)

What is wrong? sorry for the spaces, the editor added them.

I need to make this able to receive emails as a server, help me understand how to implement a new command, thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.