Jump to content

Lua + PHP الاتصال بموقع عن طريق


Recommended Posts

  • 2 weeks later...

"ERROR failed to send message to email" مساعد أقولي

time = { } 
addCommandHandler("SendMail", 
function (player,cmd,to,subject,massge)  
     if(massge)then  
          if( string.find(to,"@") ) then  
               if not isTimer(time[player]) then 
                    if (callRemote("http://gtazamta.host22.com", getFromWebstire, to, subject, massage)) then 
                         outputChatBox("Message Has been Sended to email", player, 0, 255, 0) 
                         time[player] = setTimer(function () end,5 * 60000,1)  
                    else 
                         outputChatBox("ERROR failed to send message to email", player, 0, 255, 0) 
                    end 
               else 
                    outputChatBox("You already sended message to email", player, 255, 0, 0) 
               end 
          end  
     end 
end) 

Link to comment

ولكن لم تأتي رسالة "Successfully send message to email" شكرا. مكتوب

time = { } 
addCommandHandler("SendMail", 
function (player, cmd, to, subject, massge)  
    if (massge) or (string.find(to,"@")) then  
        if not isTimer(time[player]) then 
            function getFromWebstire(value) 
                if value ~= "ERROR" then 
                    outputChatBox("Successfully send message to email", player, 0, 255, 0)  
                end 
            end 
            if (callRemote("http://gtazamta.host22.com", getFromWebstire, to, subject, massage)) then 
                outputChatBox("Send message to email: "..to.."...", player, 0, 255, 0) 
                time[player] = setTimer(function () end,5 * 60000,1)  
            else 
                outputChatBox("ERROR failed to send message to email", player, 255, 0, 0) 
            end 
        else 
            outputChatBox("You already sended message to email", player, 255, 0, 0) 
        end  
    else 
        outputChatBox("Wrong. need to be use /SendMail to subject massge", player, 255, 0, 0) 
    end 
end) 

Link to comment
<?require "mtaphpsdk/mta_sdk.php";$table = mta::getInput();$mailTo = $table[0]$Subject = $table[1]$Message = $table[2] if(isset($Message)){  mail($mailTo,$Subject,$Message)  mta::doReturn("Successfully"); } else {  mta::doReturn("failed");}?>

function getFromWebstire(value) 
  if value ~= "ERROR" then 
outputChatBox(tostring(value)) 
 end 
end 
Link to comment

<?require "mta_sdk.php";$table = mta::getInput();$mailTo = $table[0];$Subject = $table[1];$Message = $table[2]; if(@mail($mailTo,$Subject,$Message)) {  mta::doReturn("Successfully"); }else{    mta::doReturn("failed"); }?>

    time = { } 
    addCommandHandler("SendMail", 
    function (player, cmd, to, subject, massge) 
        if (massge) or (string.find(to,"@")) then 
            if not isTimer(time[player]) then 
                function getFromWebstire(value) 
                    if value ~= "ERROR" and value == "Successfully" then 
                        outputChatBox("Successfully send message to email", player, 0, 255, 0) 
                    end 
                end 
                if (callRemote("http://nub.hj.cx/mail.php", getFromWebstire, to, subject, massge)) then 
                    outputChatBox("Send message to email: "..to.."...", player, 0, 255, 0) 
                    time[player] = setTimer(function () end,5 * 60000,1) 
                else 
                    outputChatBox("ERROR failed to send message to email", player, 255, 0, 0) 
                end 
            else 
                outputChatBox("You already sended message to email", player, 255, 0, 0) 
            end 
        else 
            outputChatBox("Wrong. need to be use /SendMail to subject massge", player, 255, 0, 0) 
        end 
    end) 

مجرب و يشتغل تمام

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...