私のページにフォームがあります。ユーザーが入力したフォームの詳細を特定のメールで送信したい。
ここに私のフォームがあります:
 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();
                                }
                            }
                        ]
                    }
                ]
ここに私のphpスクリプトがあります:
<?php
// Configuration Settings
$SendFrom =    "Form Feedback <jainishan@yahoo.in>";
$SendTo =      "ishan.fzd@gmail.com";
$SubjectLine = "Feedback Submission";
// Send E-Mail and Direct Browser to Confirmation Page
mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom");
?>
フォーム ボタンをタップすると、次の例外が発生します。
無効な JSON 文字列をデコードしようとしています:
解析エラー: 構文エラー、E:\softwares\Sencha dwnlds\xampp\htdocs\RasovaiApp\contact.phpの11行目にある予期しない '.=' (T_CONCAT_EQUAL)
注: 「メールの送信中に問題が発生しました。基本的なメールを送信することさえできません。」
どんな助けでも素晴らしいでしょう。
ありがとうイシャン・ジャイン