Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By amosbatto
#815821
If you want to send the email to a user other than the next assigned user, then place a variable in the "Email Variable" field such as: @@emailTo
ActionsByEmail-Variable.png
ActionsByEmail-Variable.png (43.31 KiB) Viewed 2517 times
Then, create a trigger in the process that sets the variable, like this:
Code: Select all
@@mailTo = "some_address@example.com";
If you want to send the email to multiple recepients:
Code: Select all
[code]@@mailTo = "some_address@example.com, another@example.com, still_another@example.com";
[/code]
Set this trigger to execute at some prior point in the process.

Another way to set the variable is to create a dropdown box in a Dynaform which is associated with the "mailTo" variable. For example if it had the following lists of options:
Code: Select all
Key                | Label
-----------------------------------
george@example.com | George Will
mary@example.com   | Mary Moore
sally@example.com  | Sally Smith 
Then, the user can select in the dropdown who will receive the email.
User avatar
By amosbatto
#815824
YogeeKodi wrote:Does this User with email id some_address@example.com, have to be defined in the Processmaker User table?
some_address@example.com does not have to be the email for a registered user in ProcessMaker.

If the email doesn't arrive, then the problem might be that your email server thinks that it is spam if it doesn't come from the same address as the one sending the email. To fix that problem, select the email address of your registered account under Admin > Email Servers in the "Email Account:" dropdown and select "Email Account Settings" in the "Email From Format:" dropdown.

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]