0
I have tried many ways but I have not been successful in receiving the information added by the customer in the email. I will summarize already got the code, the client accesses the site clicks on the respective items from there and made the sum but I can not receive in the email this created information...
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);
}
enviaEmail.php was the file I tried to create to receive in the email
Code I’ve already got ready is up a few lines. If anyone can give me strength I would be very grateful!
Is the problem in the Javascript or PHP file you created to send the email? If the problem is in PHP, include the PHP code in the question.
– Sam
Good night Sam hope very much that you help me where I’m erring I get a var_dump?
– Anderson Alves
You have to check... is going into the
if (data == 'ok') {
?– Sam