I am setting up a form to add links to my web-site. When the user has submitted their details I want to send an automatic e-mail, thanking them, or something.
This is what I have so far, and it works hunky-dory.
Code: Select all
<?php
$contact = "f1nutter2000@yahoo.co.uk";
$to = "<$contact>";
$subject = "Thank-you";
$message = "Thanks for adding your link";
$from = "From: Links <links@f1nutter.com>";
mail($to, $subject, $message, $from);
?>My php.ini settings are:
STMP= mail.btinternet.com
sendmail_from=
I am using PHP 4.2.0 with Win98 and PWS 4.0
Thanks.