Galera I put together a function that executes the class phpmailer and sends an e-mail. But I do not know how to check her return and find out if the email was sent. Good follows function:
function envia_email($destinatario) {
// Aqui fica todos os dados da função
// Envia o e-mail
$email->Send();
}
What sends the email and this command $email->Send();
.
And I call the function like this:
envia_email($destinatario);
Well, how do I know if it was true or false?