Email Endpoint difficulties

Hi,
I am trying to configure a single email which contains custom text to identify many alarms.

I have set the email body to -
Attention -
A {{}} Alarm has been triggered at FFF1.

Defined a couple of things in setup -

    thing["pH_High_Email"] >> [] (pson& out){
    out = pH_High_Email;
};
    thing["pH_Low_Email"] >> [] (pson& out){
    out = pH_Low_Email;
};

And called the endpoint in Loop -

  if ((pH_Dose == 16) and (Sump_pH_High_Email_Sent == 0)){
    Serial.println("Sending pH High Alarm Email");
    thing.call_endpoint("Len_Email", "pH_High_Email");
    Sump_pH_High_Email_Sent = 1;   
  }
  if (pH_Dose != 16){
    Sump_pH_High_Email_Sent = 0;
  }
  if ((pH_Dose == 9) and (Sump_pH_Low_Email_Sent == 0)){
    Serial.println("Sending Sump pH Low Alarm Email");
    thing.call_endpoint("Len_Email", "pH_Low_Email");
    Sump_pH_Low_Email_Sent = 1;   
  }
  if (pH_Dose != 9){
    Sump_pH_Low_Email_Sent = 0;
  }

But the resultant emails I receive all have the same body -
A {{}} Alarm has been triggered at FFF1.

The curly brackets appear in the email and are not replaced with the thing data.

Am I missing something?

Thanks.

Hi, I recommend you to check your email HTML body is really using {{}} clicking on the code button, as {{}} is not being replaced by the server.

Anyway, what is the content of the variable pH_Low_Email and pH_High_Email?

Rich Text is -

Attention -

A {{}} Alarm has been triggered at FFF1.

String pH_High_Email = “pH High”;
String pH_Low_Email = “pH Low”;