Sorry, jeg er en tumpe til det her :o)
##
## Change the info below to your details
$YourEmail = "ann@dagensdyr.dk"; ## Email address to receive the newsletter signup requests on.
$WebsiteURL = "
http://www.dagensdyr.dk"; ## Your website URL
$emailsubject = "Nyhedsbrev"; ## Email Subject Line
$ThanksURL = "thankyou.htm"; ## Location of the Thankyou page
## Make sure they used our newsletter form, Just a bit of error checking
if(!isset($email)) {
header("location: $WebsiteURL"); ## If not, send them here. (the website URL you enetered above)
exit();
}
## The text which will be displayed in the email. (Change to suit you requirements)
$emailtext = "
----------------------------------------------------
Newsletter Sign Up From ".$WebsiteURL."
----------------------------------------------------
Newsletter Signup Request
Please add me to your Newsletter Email List
My email address is: ".$email."
Kind Regards,
Newsletter Sign Up Request
$WebsiteURL
";
## The following sends the email, with the required information
@mail("$YourEmail", $emailsubject, $emailtext, "From: $email");
## Conceding they were kind enough to fill in the form lets send em somewhere nice ;-)
header("Location: $ThanksURL"); ## To the thankyou page we stipulated, above.
exit;
?>