You are viewing limited content. For full access, please sign in.

Question

Question

Workflow Email activity with @Mentions in the body

asked on April 29, 2024

Hello, I'm trying to get WF to send an email and "@mention" a user so that the person will be able to see the email in his mentions filtered folder.

I've had some minor success using this HTML coding "<a id=OWAAM5212D6874BBD414FB3164A31089C3AAEZ href="mailto:%(EmailToken)"><span style='font-family:"Calibri",sans-serif;text-decoration:none'>@%(UserName)</span></a>"

This will properly highlight the person referenced and open up their address/contact card BUT it doesn't add the "@" symbol to the email and doesn't show up under mentions.

After doing some research, it looks like the email header also has to contain have "X-mentions: %(EmailToken)".  Is it possible to send an email from WF and have a value inserted into the header when received by the email server?  Maybe through some extra HTML coding or something?

0 0

Replies

replied on April 29, 2024

Hi Grant,

Doesn't look like you can set custom headers in the Workflow Email activity, including in its Advanced Settings.

If this is particularly important, I'd look into using a .NET C# Script activity to construct the email with System.Net.Mail SmtpClient (see Remarks) or MailKit (which Microsoft recommends you use instead in most scenarios). If you go that route, you'd ideally avoid having to deal with authentication in your code, you'd be sending to a local SMTP relay that uses an IP/server-based allowlist.

1 0
replied on April 30, 2024

Hey Sam, thanks for looking into this for me.  That might be outside my skillset to pull off without considerate effort and testing.

I'm thinking an alternative solution would be just to assist this customer in creating outlook rules that automatically move notification emails into a sub-folder when certain conditions are met.  Or just have that email have Priority on it which I know Workflow can do.

He could then forward the email to himself with an @mention if he really wants the email to show up in mentions but at the very least we could make it stand out from the standard email notification.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.