Author Topic: email new line  (Read 323 times)

Offline cokeman

  • Jr. Member
  • **
  • Posts: 89
  • 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

  • Hero Member
  • *****
  • Posts: 538
  • Karma: +29/-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: 89
  • 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...