Skip to main content
chrisg0006
May 30, 2024
Solved

Send E-mail smart service not sending to the second email recipient

  • May 30, 2024
  • 4 replies
  • 0 views

In the documentation for the Send E-mail smart service, it says to put a semicolon between email recipients.

This is the expression I am using.

= toemailaddress(
  pv!spkrRecord['recordType!PMSO Speaker.fields.speakerEmail']
);
toemailaddress(
  pv!parishProfileRecord['recordType!PMSO Parish Profile.fields.parishContactEmail']
)
 

However, the first recipient receives the email, but the second one does not.  What am I doing wrong here?

    Best answer by stefanhelzle0001

    That's not a valid expression. If you want to create a list, use curly brackets and a comma as the separator.

    {
      toemailaddress(
        pv!spkrRecord['recordType!PMSO Speaker.fields.speakerEmail']
      ),
      toemailaddress(
        pv!parishProfileRecord['recordType!PMSO Parish Profile.fields.parishContactEmail']
      )
    }

    4 replies

    stefanhelzle0001
    May 30, 2024

    That's not a valid expression. If you want to create a list, use curly brackets and a comma as the separator.

    {
      toemailaddress(
        pv!spkrRecord['recordType!PMSO Speaker.fields.speakerEmail']
      ),
      toemailaddress(
        pv!parishProfileRecord['recordType!PMSO Parish Profile.fields.parishContactEmail']
      )
    }

    chrisg0006
    May 30, 2024

    I will give that a shot.  Thanks for the quick response.