extjs - Not receiving mail from php contact form -
hi have contact form in overlay panel, submit action can seen below. once submit email.php receive success php file not receive mail in inbox or spam. using gmail receive mail, php can seen below:
items:[ { xtype:'button', text: 'submit', ui: 'action-round', handler: function(){ var contactuscomment = ext.getcmp('contactusform').getvalues(); ext.ajax.request({ url: 'email.php', params : contactuscomment, success: function(response){ var text = response.responsetext; ext.msg.alert('success', text); } }); <?php $name = $_post['name']; $email = $_post['email']; $message = $_post['message']; $formcontent="from: $name \n message: $message"; $recipient = "mygmailhere"; $subject = "contact form"; $mailheader = "from: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("error!"); echo "thank you!"; ?>
Comments
Post a Comment