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
I'm not sure what you've seen, but I can personally confirm that the Send Email Smart Service is very capable of sending an email to basically any valid email address. What have you tried, exactly?
I have seen in the past that the SMTP server is blocking the emails from Appian. You may need to define a custom email server and then make sure they are not on the 'spam' list.
https://docs.appian.com/suite/help/19.3/Configuring_Custom_Email_Senders.html
Hope that helps
are you passing a user from Appian and wrapping it in a toemailrecipient? are you sure the email passed has a @ and proper .<type>?Just some things to check. To debug, I would add a script task and save the email address you are trying to use in a PV s you can confirm it is as you expect before the email node.
Hi Ravinder -It is possible to send an email from Appian to a valid email address.Here's how.
"user@domain.com";
fn!toEmailAddress(rule!xyz_getEmailAddressText(vars))
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 */
I've found that when sending an email to an arbitrary email address (either plaintext or from a text PV containing the email address), it needs to be wrapped in the toEmailAddress() function in the "To" field of the Send Email node. Also you should validate (preferably well beforehand) that the text in question is a valid formatted email address, including no leading or trailing spaces, etc.
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")}
This worked for me. Thank you