![]() ![]() ![]() Password: (blank, because every time I enter it, it accepts it and leaves it blank thereafter)Į-mail address to send a test e-mail then get this log I read about AWS SES and I installed SMTP to try and fix emails being sent/received. Within the “Message” field, Enter the message that you want to display.Hi I am running on Drupal 7.56, when I moved over my site to AWS cloud the emails stopped being sent/received.In the “Template” section, Click the “Select” button and choose “Display a message to user”.Label the task “Display message to user”.Click the rounded rectangle “Append task” icon, which inserts another task. You’ll see some icons appear to the right of it. Click the “Send rejection email” task.Once again, within the “Entity” field, we enter in the token that we created for the original entity’s values, updatedentity.We’re expecting 47, which is the ID of the “Rejected” taxonomy term that we created. For the “Expected field value” field, set the value to the value you’re expecting.In the “Template” section, Click the “Select” button and choose “Entity: compare field value”.Label the condition, “Check if acceptance is is rejected”.This will bring a “Sequence flow” property pane to the right. Select the arrow that goes from the “Load new values” task to the “Send rejection email” task.Fill out the “Subject” and “Message” fields.I use the token to represent the author of the session node. Insert either an email address or a token representing an email address into the “Recipient email address” field.In the “Template” section, Click the “Select” button and choose “Send email”.Select the “Send rejection email” task that you just created.Drag it to the bottom of the “Load new values” task. With your mouse, grab the starting point of the arrow that is splitting off from the “Check if acceptance is accepted” arrow.Same as before, we click the “Load new values” task.Let's do this again for rejection emails by replicating steps 6-8. Create alternate workflow to send rejection emails and show message Within the “Entity” field, we enter in the token that we created for the original entity’s values, updatedentity.For FLDC, we’re expecting 46, which is the ID of the “Accepted” taxonomy term that we created. Within the “Field name” field, enter the machine name of the field you want to check.Label the condition, “Check if acceptance is is accepted”.Select on the arrow that goes from the “Load new values” task to the “Send acceptance email” task.To do this, we need to check that the value is set to 46, which is the ID of the “Accepted” taxonomy term that I created. ![]() Create conditional to only proceed if the acceptance field is set to “Accepted”īefore we send the acceptance email, we obviously need to check that the field_acceptance field is set to “Accepted”. To give you an idea of where we’re ending up, here’s a screenshot of the final model within ECA.ħ. bpmn_io - This is the UI to create and configure models.eca_ui - This is a UI to see (but not configure) existing ECA modals.eca_content - this enables ECA to work with content entities (like creation, updating, etc).I have the following ECA related modules installed and enabled: Along with the normal expected fields, there’s an optional “Acceptance” field ( field_acceptance) that’s a reference to a taxonomy vocabulary where there are two entries: “Accepted”, and “Rejected”. The Florida DrupalCamp website has a node type called session. We’ll also display a confirmation message to the user that emails have been sent out. In this next article, I’ll walk through the steps of sending confirmation and rejection emails when a field is changed to indicate the session is accepted or rejected. ![]() If you’ve not read that article yet, check it out now as it gives a good background of ECA. In part 1 of this series, I walk through using ECA to send an email when a user creates a “session” node. The Florida DrupalCamp website (where session submissions are open till December 19th), uses the ECA module to send transactional emails. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |