Skip to content

BlackyTay/Fake-PHP-SMTP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A fake SMTP server in PHP with authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages