lgaetz
(Lorne Gaetz)
April 19, 2024, 1:15pm
1
This week’s #FridayFun is a result of a conversation with @kierknoby asking how one might go about adding a date/time variable to the body of the email notifications generated by Superfecta. This turned out to be surprisingly easy. The send to email superfecta module is in the file:
/var/www/html/admin/modules/superfecta/sources/source-Send_to_email.module
The source for which lives on GitHub here:
<?php
/*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
* Dev notes:
*
* Version History:
* 2013-08-11 Initial migration
* 2013-08-12 support for multiple email address and debug output
* 2015-02-20 Added support for from: address
* 2018-04-22 Added support including DID in email subject/body
* 2019-05-04 Fix bug in DID and add field to specify DID if unknown
* 2024-04-17 Add timestamp support to email subject and body
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***/
class Send_to_Email extends superfecta_base {
public $description = "This module will send a notification email to the user supplied email addresses for all inbound calls where a CallerID name is found by Superfecta.";
public $version_requirement = "2.11";
public $source_param = array (
'Email_address' => array(
'description' => 'Specify email notification address, separate multiple addresses with commas.',
This file has been truncated. show original
The blocks of code starting on lines 75 and 89 substitute current values where the placeholders appear in the subject and body.
This changed in published to edge now in Superfecta versions 17.0.1.4 and 16.0.30
2 Likes
system
(system)
Closed
May 20, 2024, 1:16pm
2
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.