E-mail form doesn't send email
Autor: cdsoft cdsoftHi,
My email form code as below.
<form id="imObjectForm_1" action="imemail/imEmailForm_04.php" method="post" enctype="multipart/form-data">
When i click send email button, I don't get any error and redirect index.html but e-mail doesn't send anything.
<?php
if(substr(basename($_SERVER['PHP_SELF']), 0, 11) == "imEmailForm") {
include '../res/x5engine.php';
$form = new ImForm();
$form->setField('A', $_POST['imObjectForm_1_1'], '', false);
$form->setField('B', $_POST['imObjectForm_1_2'], '', false);
$form->setField('C', $_POST['imObjectForm_1_3'], '', false);
$form->setField('D', $_POST['imObjectForm_1_4'], '', false);
$form->setField('E', $_POST['imObjectForm_1_5'], '', false);
$form->setField('F', $_POST['imObjectForm_1_6'], '', false);
if(@$_POST['action'] != 'check_answer') {
if(!isset($_POST['imJsCheck']) || $_POST['imJsCheck'] != 'jsactive' || (isset($_POST['imSpProt']) && $_POST['imSpProt'] != ""))
die(imPrintJsError());
$form->mailToOwner('***', '***', '', '', false);
@header('Location: index.html');
exit();
} else {
echo $form->checkAnswer(@$_POST['id'], @$_POST['answer']) ? 1 : 0;
}
}
you need to contact your host. also login to the admin pannel of your website, and test different level of email script, if none of the working, then contact them.
your admin panel address is www.yourdomain.com/admin
also use an email address as the sender within your domain!
if you domain is www.23xvc.com, make sure you email is something like me AT 23xvc.com
sorry can not use a @ in forum, it will be removed automatically.
if this post is the correct answer, please mark this answer as correct answer.
------------------------------------------------------------
Good Luck