send email notification using send email smart service

We are implementing application on Appian cloud. Looking to send an email notification to the external / non-appian users using send email smart service but looks like this smart service can be used to send an email to internal / appian users only. Is there a way to send an email to external emails/users ?

  Discussion posts and replies are publicly visible

Parents
  • Hi Ravinder -
    It is possible to send an email from Appian to a valid email address.
    Here's how.

    1. direct address:
      Just enter the email address in the To field like as follows:
      "user@domain.com";

      It's unlikely that you will ever want to do this, since you're probably going to use expressions to send messages to different addresses as per the needs of your process.

      It should look like this:


    2. dynamic address expression:
      Reference your expression that returns the text of the email address in the To field.
      When addressing the email in this way - it needs to be type cast as an email address.
      so do one of the following in the to field:

      (a) This takes the text and casts it to an email address type in when you call it.
      fn!toEmailAddress(rule!xyz_getEmailAddressText(vars))

      OR

      (b) This references the rule that casts the text to email first.
      rule!xyz_getEmailAddress(vars)
      
      /* where rule!xyz_getEmailAddress(vars)  */
      /* wraps the result text in fn!toEmailAddress in advance, */
      /* so you don't have to do it in the smart service */




  • 0
    Certified Associate Developer
    in reply to Robert Shankin

    Is it possible to mix variable types in the To (or CC) field? I have a use case where I need to send to the process initiator and an AD distribution group email address. Thanks!

    Something like...

    To: = {pv!userOrGroupArray; toemailaddress("distributionGroup@myOrg.com")}

Reply Children
No Data