Tech & Cyber Security Tranzila notify PHP mail

Tranzila notify PHP mail

TRANZILA is a leading Payment Gateway for secure Internet Transaction Processing

TRANZILA provides merchants with advanced online solutions and infrastructure for credit cards processing, e–business hosting and e–commerce management. Our leading online credit card clearing service is based on state-of-the-art technologies and architecture. Our clients enjoy the highest standards of speed, reliability and serviceability.

PHP script that send mail — from notify URL .

<?php
$to = 'support@domain.com' . ', ';
#need to change when will be in production
#$to .= 'support@domain.com';

$subject = "New Order " . $_POST['Response'] . " " . "param " . " " . $_POST['param'];

#test subject str_replace
#$subject = str_replace(array("n", "r"), '', $_GET['sum']);

#$comment = $_POST['message'];

// To send HTML mail, the Content-type header must be set

$headers = "From: " . strip_tags($_POST['email']) . "rn" .
"Reply-To: " . strip_tags($_POST['email']) . "rn" .
'MIME-Version: 1.0' . "rn" .
"Content-Type: text/html; charset=utf-8rn" .
"Content-Transfer-Encoding: 8bitrnrn";
$message = print_r($_POST, true);

// message
$message = "סוג עיסקה: " .strip_tags($_POST['Response']) . " " . "מייל: " . " " . $_POST['email'] . " " . "param" . " " . $_POST['param'] . " " . "כתובת: " . " " . $_POST['address'] . " " . "עיר: " . " " . $_POST['city'];

mail($to,$subject,$message,$headers);

#test

#test

#print to array
echo '<pre>';
print_r($_POST);
echo '</pre>';
?>

My bitbucket account is : https://bitbucket.org/kamtec1/

Link to Repository of this script : https://bitbucket.org/kamtec1/tranzila-notify-php-mail

Good luck.

https://www.securityinet.com/tranzila-notify-php-mail/ https://www.securityinet.com/tranzila-notify-php-mail/ https://www.securityinet.com/