Author Topic: email new line  (Read 759 times)

Offline cokeman

  • Full Member
  • ***
  • Posts: 113
  • Karma: +1/-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 ?
Vera 3 in the summerhouse, Vera Plus at home
@Denmark

Offline jswim788

  • Hero Member
  • *****
  • Posts: 787
  • Karma: +57/-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

  • Full Member
  • ***
  • Posts: 113
  • Karma: +1/-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...
Vera 3 in the summerhouse, Vera Plus at home
@Denmark