Skip to main content
New Participant
Sep 28, 2022 3:23 PM UTC
Solved

Send-Email process model smart object do not send email to recipient that are not already Appian User

Hello,

I'm trying to send an Email from a process model, but when putting in the "TO" recipient an email address not related to an user registered in my environment, it does not send it.

I do not give any error, just do not send it to such recipient:

as you maybe can see from the screenshot, when monitoring the process there is not any error, but no "ToValidAddresses" is registered.

Instead, if I put my Appian Account email in the "TO" field, this became filled and I can receive the email.

Any idea about this behaviour?

Thanks a lot

csteward
cstewardAnswer
Brainy
Sep 28, 2022 3:32 PM UTC

I believe this where the conversion from text to email address type fails, try wrapping your email address with:  toemailaddress()

6 replies

stefanhelzle0001
Brainy
Sep 28, 2022 3:32 PM UTC

Use this function to turn your email address string into a real email address.

https://docs.appian.com/suite/help/22.3/fnc_conversion_toemailaddress.html

csteward
cstewardAnswer
Brainy
Sep 28, 2022 3:32 PM UTC

I believe this where the conversion from text to email address type fails, try wrapping your email address with:  toemailaddress()

New Participant
Sep 30, 2022 7:51 AM UTC

It worked perfectly, thanks a lot

dimitriss5700
Participating Frequently
Sep 28, 2022 3:40 PM UTC

Moreover, you can store the email address in a constant value of type "Email Address"  that you can create and set as a value to the email "To" field.

Participating Frequently
Sep 28, 2022 3:44 PM UTC

Yes but I don't suggest this  we can  but sometimes we take email as a input and email process is generic most of the times.

dimitriss5700
Participating Frequently
Sep 28, 2022 3:49 PM UTC

Sure, this option applies mostly when you have a fixed email address. When the email address is not known and it's stored in a pv then toemailaddress() funtion is the best option.