jeweetzelluf hat geschrieben:For the guestbook i think i should be under this line?
guestbook.php
Hy Tony,
Better is when you insert the code under this:
and under this:
Else the mail has send when the post has an error, too.
and in the register.php, you can insert the function over this:
(this is the activationmail to the user).
For send mail is this funtion:
the headers is optional.
But by the registration please not send the aktivationmail. in The mail is the password of the user-account. and this ist only for the user and not for the administrator
You can make your mail so:
Code: Alles auswählen
$adminmessage = "username:".$username ."\n Email:".$email;
mail ("admin@domain.de", $subject, $adminmessage, $headers);
the /n is for the linebreak/Return. if the /n the wrong string you must \n use for the linebreak/Return