Detalhe do formulário de e-mail no Sencha Touch, dando exceção
Eu tenho um formulário na minha página. Eu quero os detalhes do formulário, que são preenchidos pelo usuário, para enviar um e-mail específico.
Aqui está o meu formulário:
xtype: 'formpanel',
width: 300,
height: 900,//recommended for the build
url: 'contact.php',
scrollable:false,
items:[
{
xtype: 'textfield',
name : 'name',
label: 'Name',
labelWidth:100
},
{
xtype: 'textfield',
name : 'Date of birth',
label: 'Date of birth',
maxLength: 10,
labelWidth:120
},
{
xtype: 'textfield',
name : 'Nationality',
label: 'Nationality',
labelWidth:100
},
{
xtype: 'textfield',
name : 'City of Residence',
label: 'City of Residence',
labelWidth:170
},
{
xtype: 'textfield',
name : 'Country',
label: 'Country',
labelWidth:100
},
{
xtype: 'textfield',
name : 'Date',
label: 'Starting date of this course',
labelWidth:220
},
{
xtype: 'fieldset',
title: '3. Course to join',
items: [
{
xtype: 'selectfield',
label: 'Choose one',
labelWidth:120,
options: [
{text: 'Ayurveda Massage (Ayurveda Yoga Massage)', value: 'first'},
{text: 'Ayur Balance Massage', value: 'second'},
{text: 'Abhyanga Massage with Shirodhara', value: 'third'}
]
}
]
},
{
xtype: 'numberfield',
name : 'Date',
label: 'Starting date of this course',
labelWidth:220
},
{
xtype: 'numberfield',
name : 'Your Phone',
label: 'Your Phone',
labelWidth:120
},
{
xtype: 'toolbar',
items: [
{
xtype: 'button',
height: 30,
text: 'Submit',
ui : 'confirm',
handler : function(button) {
this.up('formpanel').submit();
}
}
]
}
]
Aqui está o meu script php:
<?php
// Configuration Settings
$SendFrom = "Form Feedback <[email protected]>";
$SendTo = "[email protected]";
$SubjectLine = "Feedback Submission";
// Send E-Mail and Direct Browser to Confirmation Page
mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom");
?>
Ao tocar no botão do formulário, estou recebendo uma exceção a seguir:
Você está tentando decodificar uma string JSON inválida:
Erro de análise: erro de sintaxe, inesperado '. =' (T_CONCAT_EQUAL) emE: \ softwares \ Sencha dwnlds \ xampp \ htdocs \ RasovaiApp \ contact.php conectados11
Nota: "Estou enfrentando problemas ao enviar e-mail. Nem sequer consigo enviar um e-mail básico."
Qualquer ajuda seria grata.
Obrigado Ishan Jain