hmm i made a php script that send me e-mail and password that the person enteret in a htm page.. but i dont get the fucking mail from that site -.- what the hell i do wrong?
http://www.MegaShare.com/209328
php and htm script inside.. oyes for learnig purpose ONLY^^
the redirection to the site works perfekt but i dont get a mail.. -.- what do i wrong???
goddamned php script -.-
-
- Fame ! Where are the chicks?!
- Posts: 503
- Joined: 22 Feb 2007, 17:00
- 17
- Location: switzerland
- Contact:
goddamned php script -.-
[img]http://img.photobucket.com/albums/v247/Vlady/48265b8wj96xhce.gif[/img]
-
- Fame ! Where are the chicks?!
- Posts: 503
- Joined: 22 Feb 2007, 17:00
- 17
- Location: switzerland
- Contact:
umh youve been right xD shit i forgot to watch of that..bad_brain wrote:is a mailserver running and do you have access to it?
I doubt it'll work by using a regular mail account, because it acts like a relay then and this is blocked on 99% of the hosts
hmm now i write another php script.. it saves the passes and e-mail in a txt file... thanx for help
[img]http://img.photobucket.com/albums/v247/Vlady/48265b8wj96xhce.gif[/img]
- Big-E
- Administrator
- Posts: 1332
- Joined: 16 May 2007, 16:00
- 16
- Location: IN UR ____ , ____ING UR _____ .
- Contact:
mail( ) function is probably disabled, if this is a free site that is likely to be the case. Often times when you attain free hosting, the site owner will disable the send mail function as well as a few others.
A simple send mail script looks like this.
If you cannot send the mail, then it's likely the mail( ) function is disabled and you will need to either enable it or find new hosting. Best I can do to describe your error. Try that script out.
A simple send mail script looks like this.
Code: Select all
$to = "you@yourdomain.com";
$subject = "Hi!";
$body = "Hi,\n\nsuck-oold.com RULES!!!";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}