forked from Claudio/integracao
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
727 B
19 lines
727 B
<?php |
|
|
|
require_once 'MKSolutions.php'; |
|
$mk = new MkSolutions(); |
|
|
|
$documento = $mk->agi()->get_variable('CPFCLIENTE', true); |
|
$codCliente = $mk->agi()->get_variable('CODCLIENTE', true); |
|
$opcao = $mk->agi()->get_variable('EXTEN', true); |
|
|
|
$mk->SimpleMail(CONF_SENDER_EMAIL_USER, CONF_SENDER_EMAIL_PASSWORD, CONF_EMAIL_SUBTITLE_INVOICE); |
|
$mk->confSMTP(CONF_SMTP_HOST, CONF_SMTP_POST, CONF_EMAIL_TITLE_INVOICE, true, 'tls'); |
|
$response = $mk->enviarBoletoFatura($documento, true); |
|
|
|
|
|
if ($response) { |
|
$mk->executarFluxo('ANUNCIO', 'INT_FATURA_SUCESSO'.CONF_NOME_EMPRESA); |
|
} else { |
|
$mk->executarFluxo('ANUNCIO', 'INT_FATURA_FALHA'.CONF_NOME_EMPRESA); |
|
}
|
|
|