Jump to content

Send mail help please


#[B]lack

Recommended Posts

Error: http://prntscr.com/lqcc3z

WARNING: [VSK]Mail\s.lua:9: Unrecognized argument list for callRemote: bad arguments or missing arguments

 

Server.lua

addEventHandler("onResourceStart", getResourceRootElement(getThisResource()),

function()

 

local email = "[email protected]"

local titulo = "batata"

local senha = "batata"


 

callRemote ("http://vskdev.mtabrasilhost.com/testes/index.php", result, email,titulo,senha)

end)

 

index.php

<?php

require "sdk/mta_sdk.php";

 

$table = mta::getInput();

$email = $table[0];

$subject = $table[1];

$body = $table[2];

 

$result = mail($email,$subject,$body);

 

var_dump($result);

}

?>

 

Edited by #[B]lack
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...