- mail: documentation ( source)
- ini_set: documentation ( source)
<?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", "pieteralberts.tcp@gmail.com", $message, $headers);
echo "Check your email now....<BR/>";
?>