[SOLVED] Printing to a new line in an email

Hey all,

I’m trying to send two lines of data to an email when a timer condition is met. I’m using the timer widget for the time condition and that is working fine. I can’t figure out how to send 2 separate lines in the same email. I’d like to send a minimum temperature and a maximum temperature for a 24hr period. Here is my code block:

BLYNK_WRITE(V9) { //resetMinMax via timer widget
  String emailMin = String("Mud Room 24hr Min: ") + tempMIN + " °F";
  Blynk.email("xxx@xxx.com", "Min Temp: Mud Room", emailMin);
  tempMIN = 999;
  tempMAX = -999;
}

I’ve seen a couple of other posts reccomending the use of
. However, none of those posts show a use case. Is this HTML or something? I’m not familiar with it.

To sum my question up: I would like to add a max temp to my email in a second line. So, in addition to the tempMIN line, I need a tempMAX line. Anybody have an example of how this <br> would look in my code?

    String emailbody = (String("Min: ") + String(tempMIN) + "<br>" + String("Max:") + String(tempMAX) + "<br>"); 
    Blynk.email("xyz@abc.com", "Subject:xxxxx", emailbody);
1 Like

Awesome @Costas, that worked! Thanks much.