I have tried in many ways but I have not been successful in receiving in the email the information added by the client. I can summarize I have already obtained the code, the client accesses the site clicks on the respective items of that and made the sum but I can not receive in the email this information created ...
function salvaJogo(tipo) {
$.post("/game/includes/enviaEmail.php", {
jogo: $.cookie("jogo"),
jogo1: $.cookie("jogo1"),
hd: $.cookie('hd'),
item_adicional: $.cookie("item_adicional"),
itens: item_adicional,
jogo: $.cookie("jogo"),
jogo_g: $.cookie("jogo_g")
}, function (data) {
if (data == 'ok') {
$('#aguarde').hide();
$('#meio .conteudo').css('opacity', 1);
var notification = new NotificationFx({
message: '<div class="icone_42 icone_ok"></div><p>Sucesso! Seu orçamento foi enviado para nossa equipe. Aguarde nosso contato.</p>',
layout: 'attached',
wrapper: document.getElementById("meio"),
effect: 'bouncyflip',
ttl: 10000,
type: 'notice',
onClose: function () {
//fechou
}
});
notification.show();
window.location.href = "#meio";
//voltarPrincipal();
} else {
$('#aguarde').hide();
$('#meio .conteudo').css('opacity', 1);
var notification = new NotificationFx({
message: '<div class="icone_42 icone_alerta"></div><p>Infelizmente ocorreu um erro. Volte mais tarde.</p>',
layout: 'attached',
wrapper: document.getElementById("meio"),
effect: 'bouncyflip',
ttl: 10000,
type: 'notice',
onClose: function () {
//fechou
}
});
notification.show();
window.location.href = "#meio";
voltarPrincipal();
console.log('retorno: ' + data);
}
sendEmail.php was the file I tried to create to receive in email
The code I already have ready is up a few lines. If anyone can give me strength I will be very grateful!