PHP SMTP SSL HTML MAIL Script

Just wanted to share the script I am working on but only the basics as it can be used as a template for anything else.


< ?php require_once "Mail.php"; $host = "ssl://mail.domain.co.uk"; $port = "465"; $username = "me@domain.co.uk"; $password = "PassW0rd";

Full code available php-ssl-smtp-html

You can save into a file and run it from command line as following $ php -f savedfile.php




Leave a Reply