HTTP error
#6

Quote:
Originally Posted by justinnater
View Post
Might be something wrong within the code though...
Show us the php file where you handle this request.
PHP Code:
<?php
if(isset($_GET['code'])) { //checks if request from SA:MP server contains code 
    
$code $_GET['code'];//Redefine just to look better :) 
    
if($code == 44514) { // Compare code from SA:MP request, a.k.a password to avoid spam or unauthorized requests 
        
if(isset($_GET['Message']) && !empty($_GET['Message'])) { //Checks if request from SA:MP server contains messag you want to send 
            //EmailTo[],Message[]
            
$emailto $_GET['EmailTo'];
            
$message $_GET['Message']; //Redefine just to look better :) 
            
$message str_replace("-"," ",$message); //Replace all - back to blank space as url cant contains blank spaces
            
mail($emailto"Securitate cont / Account security"$message"From: \"saveG.ro - Securitate cont / Account security\" <support@saveg.ro>\r\n" ."X-Mailer: PHP/" phpversion());//Send an email, format: To,Subject,Message,From 
            
echo "Email delivered"//Response message to SA:MP server, so server knows request was valid 
        

    } 

?>
Reply


Messages In This Thread
HTTP error - by qRazor - 27.03.2019, 14:02
Re: HTTP error - by justinnater - 28.03.2019, 03:06
Re: HTTP error - by qRazor - 28.03.2019, 14:42
Re: HTTP error - by qRazor - 28.03.2019, 15:28
Re: HTTP error - by justinnater - 28.03.2019, 17:00
Re: HTTP error - by qRazor - 29.03.2019, 13:20
Re: HTTP error - by bgedition - 29.03.2019, 15:00
Re: HTTP error - by bgedition - 29.03.2019, 15:23
Re: HTTP error - by justinnater - 29.03.2019, 17:01
Re: HTTP error - by bgedition - 29.03.2019, 17:13
Re: HTTP error - by justinnater - 29.03.2019, 17:26
Re: HTTP error - by bgedition - 29.03.2019, 17:33
Re: HTTP error - by qRazor - 29.03.2019, 17:35
Re: HTTP error - by bgedition - 29.03.2019, 17:47
Re: HTTP error - by qRazor - 29.03.2019, 18:04
Re: HTTP error - by bgedition - 29.03.2019, 18:14
Re: HTTP error - by qRazor - 29.03.2019, 18:22
Re: HTTP error - by bgedition - 29.03.2019, 18:34
Re: HTTP error - by qRazor - 29.03.2019, 18:50
Re: HTTP error - by bgedition - 29.03.2019, 18:54
Re: HTTP error - by qRazor - 29.03.2019, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)