This topic is locked
[SOLVED]

Using HTML email template email headers

7/31/2022 9:38:15 AM
PHPRunner General questions
G
gtothill author

Hi all,

Im using PHPRunner 10.8 and Im sending customised emails After record updated.

Im using sendEmailTemplate( "emailrecipient"domain.com", "request.txt", $values, true );

With the body of the email in the requests.txt file.

This works fine - with beautifully formatted emails being sent. But the subject line is always empty.

Does anyone know how to set the subject line in html emails using sendEmailTemplate? With plain text emails this was done by simply making the subject line the first line in the template but this does not seem to work with html templates.

My HTML template starts like this:

<!DOCTYPE html>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" lang="en">

<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Any thoughts?

Thanks,

Geoff
Admin 7/31/2022

Geoff,

it appears that right now we do not have the functionality to specify a subject line while using sendEmailTemplate(). We will do something about it.

G
gtothill author 8/13/2022

Strangely I went back and re edited the template file, putting the subject as the very first line.

The subject line did appear in the resulting emails.

Not sure why, but marking as solved as this may not have been an issue in the first place!

Geoff.