• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Dynamic subject / message on sendmail

    Mervis
    2
    3
    605
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      DickesC last edited by

      Hi

      I want to send different mails at different events.

      So e.g. at event1 the subject of the mail should be subject1, and the message should be message1.
      At event2, subject2 and message2....

      How can i do that?
      Or is it only possilbe if i add one sendbail-block for each event?

      Next question: Can i add several variables to the mail message?
      e.g. the status of a DI, or values from a power meter (watts, voltage....)

      Thanks

      Martin Kudláček 1 Reply Last reply Reply Quote 0
      • Martin Kudláček
        Martin Kudláček @DickesC last edited by

        Hello @dickesc,
        just change the input parameters "subject" and "message". Those are string variables, which you can dynamically fill/construct with FUPLA blocks from the "Basic String Boxes".

        You need to convert the values (bool, integer, real,...) to string first with block called "to_string". Then you can put together multiple strings with "concat".

        Best regards,

        1 Reply Last reply Reply Quote 0
        • D
          DickesC last edited by

          Thanks, i will have a try

          1 Reply Last reply Reply Quote 0
          • First post
            Last post