From 59702f738a92f767689e565a75094395b12c1af6 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 11 Sep 2025 12:23:48 +0200 Subject: [PATCH] #465 Email2SMS provider --- lam/lib/account.inc | 2 +- lam/lib/plugins/sms/Email2SmsProvider.inc | 109 ++++++++++++++++++++++ 2 files changed, 110 insertions(+), 1 deletion(-) create mode 100644 lam/lib/plugins/sms/Email2SmsProvider.inc diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 55eef38ab..a7d22262c 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -1536,7 +1536,7 @@ function sendEMail($to, $subject, $text, $from, $isHTML, $replyTo = null, $cc = include_once __DIR__ . '/3rdParty/composer/autoload.php'; $returnPath = empty($replyTo) ? $from : $replyTo; $returnPathParsed = PHPMailer\PHPMailer\PHPMailer::parseAddresses($returnPath); - logNewMessage(LOG_DEBUG, "Send mail to " . print_r($to, true) . "\n" . $text); + logNewMessage(LOG_DEBUG, "Send mail from " . $from . " to " . print_r($to, true) . "\n" . $text); $mailer = new PHPMailer\PHPMailer\PHPMailer(true); try { $cfgMain = $_SESSION['cfgMain']; diff --git a/lam/lib/plugins/sms/Email2SmsProvider.inc b/lam/lib/plugins/sms/Email2SmsProvider.inc new file mode 100644 index 000000000..3a9877592 --- /dev/null +++ b/lam/lib/plugins/sms/Email2SmsProvider.inc @@ -0,0 +1,109 @@ +