fix envoi mail

This commit is contained in:
Adrien Gallou
2017-10-26 12:48:19 +02:00
parent 830469c59d
commit 90de593e43
+5 -2
View File
@@ -1,5 +1,7 @@
<?php
use Afup\Site\Utils\Mail;
require_once dirname(__FILE__) .'/../../../sources/Afup/Bootstrap/Http.php';
if (
@@ -15,6 +17,7 @@ if (
}
mail($_GET['email'], 'Lien paiement elephpant', 'https://afup.org/event-payment/index.php?ref=' . $_GET['ref'] . '&forum=' . $_GET['forum']);
$mail = new Mail();
$mail->sendSimpleMessage('Lien paiement elephpant', 'https://afup.org/event-payment/index.php?ref=' . $_GET['ref'] . '&forum=' . $_GET['forum'], ['email' => $_GET['email'], 'name' => $_GET['email']]);
echo 'mail envoyé';
echo 'mail envoyé sur ' . $_GET['email'];