/Fake-PHP-SMTP-Server

A fake SMTP server in PHP with authentication

Primary LanguagePHP

FakeSMTPServerScript

FakeSMTPServerScript is just a basic and simple PHP script to build a fake SMTP server.

Installation

  1. Setup the server address and port to be listen on, default config:
$address = 'smtp.goodsane.com';
$port = 6006;
  1. Get a SSL certificate (Self-signed certificate will not be supported)
  2. Run the script with php index.php
  3. For default, the script will captures all email sent to it and print on terminal.

SSL Certificate

Modify the path for certificate and private key files before run

 'local_cert'        => '/home/mailblast/ssl/Cert.crt',
 'local_pk'          => '/home/mailblast/ssl/Private.key',

References

These resources will be helpful for anyone who want to know behind the codes :

License

MIT