run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set("SMTP", "aspmx.l.google.com"); ini_set("pieteralberts.tcp@gmail.com", "pieteralberts.tcp@gmail.com"); $message = "The mail message was sent with the following mail setting:\r\nSMTP = aspmx.l.google.com\r\nsmtp_port = 25\r\nsendmail_from = YourMail@address.com"; $headers = "From: pieteralberts.tcp@gmail.com"; mail("pieteralberts.tcp@gmail.com", "Testing", $message, $headers); echo "Check your email now....<BR/>"; ?>
Output for 4.3.0 - 7.1.7
Warning: mail() has been disabled for security reasons in /in/70Fq9 on line 10 Check your email now....<BR/>