diff --git a/lam/HISTORY b/lam/HISTORY index 6afddeae6..c7c079646 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -1,3 +1,8 @@ +December 2025 9.4 + - LAM Pro: + -> SMS sending can be done with email2SMS providers (465) + + 16.09.2025 9.3 - New translation: Greek - Tree view: added comparison feature (440) diff --git a/lam/docs/manual-sources/chapter-configuration.xml b/lam/docs/manual-sources/chapter-configuration.xml index f552ebd42..524140324 100644 --- a/lam/docs/manual-sources/chapter-configuration.xml +++ b/lam/docs/manual-sources/chapter-configuration.xml @@ -345,6 +345,28 @@ + Email2SMS + + This service can be used for all SMS gateways that allow to send + SMS via email. This means LAM sends out an email to the gateway and they + convert it to an SMS. + + + + Account id: please enter the receiving email address at your + email2SMS gateway. The address must contain the wildcard "$number" + for the user's phone number. E.g. "$number@sms.clicksend.com". + "$number" will be replaced with the actual mobile phone + number. + + + + From: this is the email FROM address. Typically, email2SMS + gateways require that the email comes from a specific email + address. + + + GatewayAPI diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 3371af690..003c46be8 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 @@ +