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

    Dynamic subject / message on sendmail

    Scheduled Pinned Locked Moved Mervis
    3 Posts 2 Posters 1.4k Views
    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áčekM 1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post