Emails are not being sent when new appointment is created

88 views
Skip to first unread message

Patrick Ermer

unread,
May 2, 2025, 12:25:46 PM5/2/25
to Easy!Appointments - Support Group
Hello,

I'm new to Easy!Appointments.  I have it installed and running on prem.

When someone creates an appointment, the appointment details email does not get sent.  When I edit the appointment, that email does not get sent.
Only when I delete the appointment, does the email get successfully sent.

I am using v1.5.1

Email.php:
<?php defined('BASEPATH') or exit('No direct script access allowed');

// Add custom values by settings them to the $config array.
// Example: $config['smtp_host'] = 'smtp.gmail.com';
// @link https://codeigniter.com/user_guide/libraries/email.html

$config['useragent'] = 'Easy!Appointments';
$config['protocol'] = 'smtp'; // or 'smtp'
$config['mailtype'] = 'html'; // or 'text'
 $config['smtp_debug'] = '1'; // or '1'
 $config['smtp_auth'] = TRUE; //or FALSE for anonymous relay.
 $config['smtp_host'] = 'xxxx';
 $config['smtp_user'] = 'xxxx';
 $config['smtp_pass'] = 'xxxx';
 $config['smtp_crypto'] = 'ssl'; // or 'tls'
 $config['smtp_port'] = 465;
 $config['from_name'] = 'Patrick Ermer';
 $config['from_address'] = 'xxxx';
// $config['reply_to'] = '';
$config['crlf'] = "\r\n";
$config['newline'] = "\r\n";

Error message:
ERROR - 2025-05-02 11:13:28 --> Notifications - Could not email confirmation details of appointment (65) : Call to undefined function Jsvrcek\ICS\mb_strcut()
ERROR - 2025-05-02 11:13:28 --> #0 /var/www/easyappointments/vendor/jsvrcek/ics/src/CalendarExport.php(212): Jsvrcek\ICS\CalendarStream->addItem()
#1 /var/www/easyappointments/application/libraries/Ics_file.php(182): Jsvrcek\ICS\CalendarExport->getStream()
#2 /var/www/easyappointments/application/libraries/Notifications.php(71): Ics_file->get_stream()
#3 /var/www/easyappointments/application/controllers/Booking.php(464): Notifications->notify_appointment_saved()
#4 /var/www/easyappointments/system/core/CodeIgniter.php(481): Booking->register()
#5 /var/www/easyappointments/index.php(331): require_once('...')
#6 {main}
ERROR - 2025-05-02 11:16:26 --> Notifications - Could not email confirmation details of appointment (65) : Call to undefined function Jsvrcek\ICS\mb_strcut()
ERROR - 2025-05-02 11:16:26 --> #0 /var/www/easyappointments/vendor/jsvrcek/ics/src/CalendarExport.php(212): Jsvrcek\ICS\CalendarStream->addItem()
#1 /var/www/easyappointments/application/libraries/Ics_file.php(182): Jsvrcek\ICS\CalendarExport->getStream()
#2 /var/www/easyappointments/application/libraries/Notifications.php(71): Ics_file->get_stream()
#3 /var/www/easyappointments/application/controllers/Calendar.php(308): Notifications->notify_appointment_saved()
#4 /var/www/easyappointments/system/core/CodeIgniter.php(481): Calendar->save_appointment()
#5 /var/www/easyappointments/index.php(331): require_once('...')
#6 {main}

Patrick Ermer

unread,
May 2, 2025, 12:41:17 PM5/2/25
to Easy!Appointments - Support Group
I should have search the Github a little better.  This was solved by this.

Alex Tselegidis

unread,
May 5, 2025, 12:34:35 PM5/5/25
to Easy!Appointments - Support Group
Hello! 

Glad to know that you resolved the issue. 



Alex Tselegidis, Easy!Appointments Creator
Need a customization? Get a free quote!



Reply all
Reply to author
Forward
0 new messages