SendMail for Windows

SendMail for Windows is a replacement for the outdated Fake-SendMail for Windows. It's available for both 32-bit and 64-bit systems and supports all currently available OpenSSL versions, including the latest version 3. The source code can be compiled with Delphi or Lazarus.

Configuration
The configuration file has the same filename as the executable file, but with the .INI file extension. For example, the configuration file for sendmail-x64.exe is named sendmail-x64.ini. All available settings are described in the INI-file. The most important settings include TargetHost – your email provider's SMTP server as well as the Username and Password for your email account with this email provider.

OpenSSL
The OpenSSL version can be selected in the configuration. The following options are available:

0: No OpenSSL is used. The communication with the server is unencryption.

1: OpenSSL version 1.0 is used.
sendmail-x86.exe uses libeay32.dll and ssleay32.dll
sendmail-x64.exe: the libeay32(x64-Remove).dll must be renamed in libeay32.dll and ssleay32(x64-Remove).dll must be renamed in ssleay32.dll

2: OpenSSL version 1.1 is used.
sendmail-x86.exe uses libcrypto-1_1.dll and libssl-1_1.dll
sendmail-x64.exe uses libcrypto-1_1-x64.dll and libssl-1_1-x64.dll

3: OpenSSL version 3 is used (default).
sendmail-x86.exe uses libcrypto-3.dll and libssl-3.dll
sendmail-x64.exe uses libcrypto-3-x64.dll and libssl-3-x64.dll

PHP.ini
The path to sendmail-x64.exe respectively sendmail-x86.exe must be specified in the php.ini. Additional parameters such as -t -i can be omitted. For example:

sendmail_path=C:\Wamp\sendmail\sendmail-x64.exe

Testing
Sending emails can be tested in two ways. Without PHP run sendmail with the parameter -m followed by the path to a file containing the email to be send. For example:

sendmail-x64.exe -m message.txt

For testing with PHP, the command line is as follows:

C:\Wamp\bin\php\php8.0.30\php.exe -c "C:\Wamp\bin\php\php8.0.30\php.ini" -f "test.php"

Note that sendmail_path must be specified in the php.ini as described above. The file test.php should contain the call to the mail() function.

Donate

Download:

Change log:

  • Version 1.0.0.0: Initial version
Published: 2. Jan 2026
Categories: Windows PHP Delphi/Lazarus/Pascal