goddamned php script -.-

All about creating websites!
Post Reply
mrmike
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 503
Joined: 22 Feb 2007, 17:00
17
Location: switzerland
Contact:

goddamned php script -.-

Post by mrmike »

:evil: :? 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???
[img]http://img.photobucket.com/albums/v247/Vlady/48265b8wj96xhce.gif[/img]

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
19
Location: In your eye floaters.
Contact:

Post by bad_brain »

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 :-k

mrmike
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 503
Joined: 22 Feb 2007, 17:00
17
Location: switzerland
Contact:

Post by mrmike »

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 :-k
:lol: umh youve been right xD shit i forgot to watch of that..
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]

shamir
Computer Manager
Computer Manager
Posts: 853
Joined: 01 Mar 2007, 17:00
17
Location: NY
Contact:

Post by shamir »

I don't get whats a mailserver 8)

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

shamir wrote:I don't get whats a mailserver 8)
A server for sending and recieving mail..........
"The best place to hide a tree, is in a forest"

User avatar
Big-E
Administrator
Administrator
Posts: 1332
Joined: 16 May 2007, 16:00
16
Location: IN UR ____ , ____ING UR _____ .
Contact:

Post by Big-E »

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.

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>");
 }
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.

Post Reply