This is a code on another php page I try to call the functions but they give error as if the variable did not exist, does anyone have any idea?
<?php
$host = "host";
$port = 587;
$username= 'usuario';
$password = 'senha';
$secure = 'tls';
$from = '[email protected]';
function host()
{
return $host;
}
function port()
{
return $port;
}
function user()
{
return $username;
}
function secure()
{
return $secure;
}
function password()
{
return $password;
}
function from()
{
return $from;
}