Wiedmann wrote:yes , I had seen that but it is not portable . the sendmail.exe must be in usr/bin/ from root drive .
That's wrong. As you can see, in XAMPP the "sendmail.exe" is in "\xampp\sendmail" and not "\usr\bin". And it's working...
BTW:
There is one big difference between sendmail.exe and your SMTP-server. It's not a routing MTA (direct connection to the target server) as yours. Because many servers don't accept mails from dial-up connections. And thus "sendmail.exe" uses the SMTP relay of your ISP to prevent this problem.
at first thanks for your idea
3 differnce beetween sendmail.exe and SMTP server :
1- There is no differnce beetween Dile-up or any other connections to send mail through sendmail.exe or SMTP server . what is your refernce to your opinion?
2-sendmail.exe opens a command line window when you use mail() function after each use of mail() function .
3-you must change your php.ini sendmail.exe path when you want to use sendmail.exe on CD-ROM or USB-Flash disk but when you use SMTP Server you can send mail from CD-ROM or USB or any other path without any change of php.ini
4- my main goal for writing this SMTP server was using of it on Read-only disks without any changes need to windows registery , php.ini , ...