updating password's noreply@ilink-appp.com
This commit is contained in:
parent
f01f51eea5
commit
afde84c835
|
|
@ -18,7 +18,7 @@ use PHPMailer\PHPMailer\SMTP;
|
|||
use PHPMailer\PHPMailer\Exception;
|
||||
|
||||
// Load Composer's autoloader
|
||||
require '../vendor/autoload.php';
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
class Messenger
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ class Messenger
|
|||
$this->mail->Host = 'mail.ilink-app.com'; // Set the SMTP server to send through
|
||||
$this->mail->SMTPAuth = true; // Enable SMTP authentication
|
||||
$this->mail->Username = 'noreply@ilink-app.com'; // SMTP username
|
||||
$this->mail->Password = 'Reply@iLink2022@@@'; // SMTP password
|
||||
$this->mail->Password = 'ijQa[(V2Xm{F2e9SEso}'; // SMTP password
|
||||
$this->mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Enable TLS encryption; `PHPMailer::ENCRYPTION_SMTPS` encouraged
|
||||
$this->mail->Port = 587;
|
||||
$this->mail->CharSet = 'UTF-8';
|
||||
|
|
|
|||
|
|
@ -30,9 +30,7 @@ use Twilio\Rest\Client;
|
|||
|
||||
// Step 2: set our AccountSid and AuthToken from https://twilio.com/console
|
||||
$AccountSid = "ACacdb9c9601741af001ebbc7eca4969cd";
|
||||
|
||||
|
||||
$AuthToken = "0aa2ed8f08775286180f8b40baaf57fb";
|
||||
$AuthToken = "e0e2f1176c09b3980c9ecf967187191b";
|
||||
|
||||
|
||||
// Step 3: instantiate a new Twilio Rest Client
|
||||
|
|
@ -40,10 +38,10 @@ $client = new Client($AccountSid, $AuthToken);
|
|||
|
||||
$sender_name = "iLink World";
|
||||
$sender_number = "+447400348273";
|
||||
$phone="+24107300823";
|
||||
$phone="+237658202858";
|
||||
|
||||
$subject = "Nouvelle demande superviseur";
|
||||
$email = "andymigoumbi@gmail.com";
|
||||
$email = "espoirsongue85@gmail.com";
|
||||
$message = "Bonjour,\n\nUne nouvelle demande de superviseur a été enregistrée.
|
||||
\nNumero de telephone : $phone \n\n\nCordialement,\nL'équipe Ilink.";
|
||||
$from = "noreply@ilink.com";
|
||||
|
|
@ -53,7 +51,7 @@ mail($email, $subject, $message, $headers);
|
|||
// Start Sending SMS
|
||||
$sms = $client->account->messages->create(
|
||||
// the number we are sending to - Any phone number
|
||||
"+24107300823",
|
||||
"+237658202858",
|
||||
array(
|
||||
// Step 6: Change the 'From' number below to be a valid Twilio number
|
||||
// that you've purchased
|
||||
|
|
|
|||
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
require 'Messenger.php';
|
||||
|
||||
$messenger = new Messenger();
|
||||
$messenger->setReceiverMail('espoirsongue85@gmail.com'); // Remplacez par l'adresse email de destination
|
||||
$messenger->setMessage('Ceci est un test de message'); // Remplacez par votre message
|
||||
$messenger->setSubject('Test d\'envoi de mail'); // Remplacez par l'objet du mail
|
||||
|
||||
try {
|
||||
$messenger->sendMail();
|
||||
echo "Email envoyé avec succès."."\n";
|
||||
} catch (Exception $e) {
|
||||
echo "L'envoi de l'email a échoué : {$e->getMessage()}";
|
||||
}
|
||||
Loading…
Reference in New Issue