The PHPMailer library is not included in the online booking system and must be made available separately on the external web server. Use the version that has been tested and specified for the current mailer template.
Install PHPMailer with or without Composer:
- If Composer is available, use it to install the specified version of PHPMailer. Composer provides all the necessary files in full within the ‘vendor’ folder and documents the version used.
- Alternatively, download the appropriate PHPMailer release from the official PHPMailer project.
- Copy the entire ‘src’ folder and the associated licence file into the directory containing the production Mailer file. Only use files from the same release and do not mix different versions of PHPMailer.
Composer does not need to be installed on the production web server. The library can be set up on a different system and then transferred in its entirety to the external host.
Do not update PHPMailer without first checking that it works correctly. After installation or an update, check that the import email and the receipt notification are sent correctly by making a test booking.