Hi
I am having issues with my phpmailer script, I am receiving the email but i am not receiving the visitor data inputed on the site, the body of the email is empty. Here is my phpmailer script and errorlog i got from the sever.
[B]PHPMAILER SCRIPT
[code=php]<?php
$Transaction_Type = $_REQUEST[‘Transaction_Type’] ;
$eCurrency_Type = $_REQUEST[‘eCurrency_Type’] ;
$Amount_USD = $_REQUEST[‘AmountinUSD’] ;
$Account_ID = $_REQUEST[‘Account_ID’] ;
$Confirm_ID = $_REQUEST[‘Confirm_ID’] ;
$Account_Name = $_REQUEST[‘Account_Name’] ;
$Phone_Number = $_REQUEST[‘Phone_Number’] ;
$Email_address = $_REQUEST[‘Email_address’] ;
require(“/home/jofexcha/public_html/phpmailertesting/PHPMailer_5.2.0/class.phpmailer.php”);
$mail = new PHPMailer();
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = “localhost”; // specify main and backup server
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = “[email protected]”; // SMTP username
$mail->Password = “juicy”; // SMTP password
$mail->From = “[email protected]”;
$mail->FromName = “JOe”;
$mail->AddAddress(“[email protected]”); // name is optional
$mail->WordWrap = 50; // set word wrap to 50 characters
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = “Withdrawal Instructions”;
$mail->Body = ” “;
$mail->AltBody = “This is the body in plain text for non-HTML mail clients”;
if(!$mail->Send())
echo ‘Transaction_Type: ‘ . $Transaction_Type . ‘<br>’;
echo ‘eCurrency_Type: ‘ . $eCurrency_Type;
echo ‘Amount_USD: ‘ . $Amount_USD;
echo ‘Account_ID: ‘ . $Account_ID;
echo ‘Confirm_ID: ‘ . $Confirm_ID;
echo ‘Account_Name: ‘ . $Account_Name;
echo ‘Phone_Number: ‘ . $Phone_Number;
echo ‘Email_address: ‘ . $Email_address;
header(‘Location:https://www.jofexchange.com/success.html’);
?>
[B]ERROR LOGS
[code=html]
[04-Mar-2017 01:46:00 America/New_York] PHP Notice: Undefined index: Transaction_Type in /home/jofexcha/public_html/phpmailertesting/testing.php on line 3
[04-Mar-2017 01:46:00 America/New_York] PHP Notice: Undefined index: eCurrency_Type in /home/jofexcha/public_html/phpmailertesting/testing.php on line 4
[04-Mar-2017 01:46:00 America/New_York] PHP Notice: Undefined index: AmountinUSD in /home/jofexcha/public_html/phpmailertesting/testing.php on line 5
[04-Mar-2017 01:46:00 America/New_York] PHP Notice: Undefined index: Account_ID in /home/jofexcha/public_html/phpmailertesting/testing.php on line 6
[04-Mar-2017 01:46:00 America/New_York] PHP Notice: Undefined index: Confirm_ID in /home/jofexcha/public_html/phpmailertesting/testing.php on line 7
[04-Mar-2017 01:46:00 America/New_York] PHP Notice: Undefined index: Account_Name in /home/jofexcha/public_html/phpmailertesting/testing.php on line 8
[04-Mar-2017 01:46:00 America/New_York] PHP Notice: Undefined index: Phone_Number in /home/jofexcha/public_html/phpmailertesting/testing.php on line 9
[04-Mar-2017 01:46:00 America/New_York] PHP Notice: Undefined index: Email_address in /home/jofexcha/public_html/phpmailertesting/testing.php on line 10
[B]
PLEASE WHAT IS THE RIGHT CODES TO USE IN OTHER TO GET THE DATA OF THE VISITOR SENT TO MY EMAIL.