Author Topic: email new line  (Read 253 times)

Offline cokeman

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +0/-0
email new line
« on: April 25, 2017, 04:13:49 pm »
Hi

How do I add a line break to an email in luup code ?

luup.call_action("urn:richardgreen:serviceId:VeraAlert1", "SendAlert", {subject = "Your Subject For This Message", Message = "Energy used yesterday "..YesterDayKWH_data , Recipients = "gmail"}, 443)

and also Subject does not override the profile defined, what i'm I dooing wrong ?

Offline jswim788

  • Sr. Member
  • ****
  • Posts: 480
  • Karma: +23/-2
Re: email new line
« Reply #1 on: April 25, 2017, 04:25:09 pm »
{subject = "Your Subject For This Message", Message = "Energy used yesterday "..YesterDayKWH_data , Recipients = "gmail"}, 443)

and also Subject does not override the profile defined, what i'm I dooing wrong ?
lua is case sensitive - perhaps you want?
Code: [Select]
{Subject = "Your Subject for ...
You might try the \n for the newline. 

Offline cokeman

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +0/-0
Re: email new line
« Reply #2 on: April 26, 2017, 02:50:53 pm »
Hi

Subject did not change anything....

\n did the trick with new line....   Thanks....

hope that Subject can be fixed somehow...