Sending a plain text email

By default the email that is sent is in HTML format. To change this to send a plain text email, edit process.php and search for the term // Set the email body and you will find these lines:

1
2
3
4
5
// Set the email body
ob_start();
include QUFORM_ROOT . $config['emailBody'];
$mailer->msgHTML(ob_get_clean());
$mailer->AltBody = 'To view this email please use HTML compatible email software.';
// Set the email body
ob_start();
include QUFORM_ROOT . $config['emailBody'];
$mailer->msgHTML(ob_get_clean());
$mailer->AltBody = 'To view this email please use HTML compatible email software.';

Change this code to the the following code:

1
2
3
4
// Set the email body
ob_start();
include QUFORM_ROOT . '/emails/notification-plain.php';
$mailer->Body = ob_get_clean();
// Set the email body
ob_start();
include QUFORM_ROOT . '/emails/notification-plain.php';
$mailer->Body = ob_get_clean();

The email will now be sent in plain text using the content in the file /emails/notification-plain.php. You can edit that file if you want to make any modifications.

Be inspired. © 2019 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy