Szczegóły formularza e-mail w Sencha Touch z wyjątkiem

Mam formularz na mojej stronie. Chcę, aby szczegóły formularza, które są wypełniane przez użytkownika, były wysyłane na określony adres e-mail.

Oto moja forma:

 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();
                                }
                            }
                        ]
                    }
                ]

Oto mój skrypt 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");
?>

Po naciśnięciu przycisku formularza otrzymuję następujący wyjątek:

Próbujesz zdekodować nieprawidłowy ciąg JSON:
Błąd przetwarzania: błąd składni, nieoczekiwany '. =' (T_CONCAT_EQUAL) inE: oprogramowanie Sencha dwnldsampp htdocs rasovaiApp contact.php online11

Uwaga: „Mam problem z wysyłaniem wiadomości e-mail. Nie mogę nawet wysłać podstawowego e-maila”.

Każda pomoc byłaby wspaniała.

Dzięki Ishan jain

questionAnswers(1)

yourAnswerToTheQuestion