Comala Workflow: Send email to email adresses

Martin Schott December 4, 2019

Hello,

I have a Comala Workflow which should send status emails to certain email adresses, when a state is changed.

{trigger:statechanged|state=Active}
{send-email:adress=example@example.com|subject=State Changed}
The status of page @pagetTeng@ has changed
{send-email}
{trigger}

Unfortunately when I want to safe the workflow I get the error message:

Error en el workflow:
send-email: need to define at least one user or email address to send to

How do is the correct syntax to send an email to an email adress?

https://wiki.comalatech.com/display/CWL/send-email+macro

On the wiki page I can't find examples.

An alternative would be to send the mail to confluence user, but I have no Idea how to do that neither...

1 answer

1 accepted

1 vote
Answer accepted
Christian Hecht January 28, 2020

Hi Martin,

it appears that you misspelled the word address. Try another d and it should work fine.

Best, Christian

Martin Schott January 31, 2020

Hi Christian,

thank you for the typo hint. Unfortunately it is still not working. Do I have to escape the @ somehow?

With the user name it is working e.g.

{trigger:statechanged|state=Active}
{send-email:user=JohnDoe|subject=State Changed}
The status of page @page@ has changed
{send-email}
{trigger}

Christian Hecht January 31, 2020

In this case, the e-mail settings for your Comala plug-in are most likely not configured properly. A Confluence administrator needs to do enable the "email any address" option in the global app settings. This allows the workflows to send emails to any email address. If disabled you can send emails to Confluence users only.

The syntax is: {send-email:address=name@domain.com|subject=e-mail subject} - without @

Give it a try and let me know whether it works ;-)

Cheers, Christian

Martin Schott February 5, 2020

Unfortunately I don't have these rights.... But now with mentioning the user it works fine for my purposes :)

Ryan Kafoor August 16, 2023

Hello @Christian Hecht ,

The syntax is: {send-email:address=name@domain.com|subject=e-mail subject} - without @ 

Could you explain what you meant here with not using '@'

{trigger:statechanged|state=Awaiting guest input}
{send-email:address=ryan@gmail.com|subject=Document approved}
Thank you for approving @page@!
{send-email}
{trigger}

This does not work for me and I have the the email any address setting enabled. 

image.png

Any help here would be appreciated.

Christian Hecht August 16, 2023

Hi Ryan,

it's been a long time since I wrote the comment. I cannot remember what I meant by "without @". The only explanation I have is to use Confluence usernames without "@" but any other (common) email address should obviously have the "@", of course.

Your workflow code seems ok to me. 

Best, Christian

Ryan Kafoor August 16, 2023

Thanks for your input anyways Christian. However this macro still doesn't seem to work. 

Christian Hecht August 16, 2023

Have you tried sending it to an "internal" Confluence user?

Also double checked the spelling of the status name?

Ryan Kafoor August 16, 2023

Yes I did, it still didn't work. I think now it may have to do something with the fact that it is a trial version, but I cant find anything in the documentation about this. 

Marcel Kleinlütke January 18, 2024

can I attach files within those mails?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events