こんにちは、私は Sencha の初心者です。メール機能を使いたいのですが、助けてください.これは私のコードです:
Ext.define('NotesApp.view.NoteSettings', {
extend: 'Ext.form.Panel',
xtype: 'formpanel',
id: 'contactForm',
url: 'feedback.php',
layout: 'vbox',
alias: 'widget.notesettingsview',
config: {
title: 'Contact',
iconCls: 'user',
items: [
{
xtype: 'fieldset',
title: 'Contact Us',
instructions: '(email is not required)',
items: [
{
xtype: 'textfield',
name: 'name',
label: 'Name'
},
{
xtype: 'emailfield',
name: 'email',
label: 'Email'
},
{
xtype: 'textareafield',
name: 'message',
label: 'Message'
}
]
},
{
items: [
{
xtype: 'button',
text: 'Submit',
ui: 'confirm',
handler: function(){
var values = Ext.getCmp('contactForm').getValues();
// prints the values filled in the form
// text fields of name, email and message.
console.log(values.name+","+values.email+","+values.message);
Ext.Ajax.request({
url: 'feedback.php',
params : values,
success: function(response){
var text = response.responseText;
Ext.Msg.alert('Success', text);
}
});
}
}
]
}
]
}
});