1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| $customerPerf ="peranalyse";
$abonnementID = $event->data->object->id;
// $customerEmail = $event->data->object->metadata->mail_user;
$customerEmail ='contact@test.fr';
$subject = 'Abonnement active'; // set the subject
$headers = "From: " . strip_tags($customerPerf) . "<" . strip_tags($customerEmail) . ">\r\n";
$headers .= "Bcc: " . $customerEmail . " \r\n";
$headers .= "Reply-To: ". strip_tags($customerEmail) . "\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
$message = 'Le Paiement du client avec l ID : "'.$abonnementID.'" et l email:"'.$customerEmail.'" a bien été accepte';
// actually send the email
@mail($customerEmail , $subject, $message, $headers); |