Email not able to send
Author: rajesh K.Hi
When we are trying to send email to this is the customs message is downloaded the new Page
Please resolve the same , and guide the same for creating the Email
Regards
Rajesh Kumar M
<?php if(substr(basename($_SERVER['PHP_SELF']), 0, 11) == "imEmailForm") { include '../res/x5engine.php'; $form = new ImForm(); $form->setField('Name', @$_GET['imObjectForm_17_1'], '', false); $form->setField('Surname', @$_GET['imObjectForm_17_2'], '', false); $form->setField('Email Address', @$_GET['imObjectForm_17_3'], '', false); $form->setField('Phone Number', @$_GET['imObjectForm_17_4'], '', false); $form->setField('Fax Number', @$_GET['imObjectForm_17_5'], '', false); $form->setField('Request Type', @$_GET['imObjectForm_17_6'], '', false); $form->setField('Your Message...', @$_GET['imObjectForm_17_7'], '', false); if(@$_GET['action'] != 'check_answer') { if(!isset($_GET['imJsCheck']) || $_GET['imJsCheck'] != '93EF3FD0D082ED7E4C909AAD8D3DCE5F' || (isset($_GET['imSpProt']) && $_GET['imSpProt'] != "")) die(imPrintJsError()); $form->mailToOwner($_GET['imObjectForm_17_3'] != "" ? $_GET['imObjectForm_17_3'] : '***', '***', 'hi ', 'Hi I confirm the order ', true); $form->mailToCustomer('***', $_GET['imObjectForm_17_3'], 'hi confirm the email ', 'confir the order', true); @header('Location: ../home.html'); exit(); } else { echo $form->checkAnswer(@$_GET['id'], @$_GET['answer']) ? 1 : 0; } } // End of file
rajesh K.
See that you use at your host php version 7.1 (use your host admin panel)
If you still have problems, change the script for mailing, x5 has a few build in, you can test these in your admin account. (/admin behind your website. Login is in x5 step 1 advanced TAB -> acces management.
change or test email scripts in x5; step 1 settings -> TAB advanced -> data management.
Are you running the website localy? Because then the mailing wil not work, it needs the php software that is provided by your webhost when the website is online.
In that case upload and try again by using it from internet.