- Issue created by @ezra
- π©πͺGermany jurgenhaas Gottmadingen
Well, ECA doesn't provide features as such. It makes existing features available to the modelling. That's also true for the generic send email action, which comes from Drupal core. But that doesn't support html. However, ECA can only always provide that functionality that is brought by the implementing module.
In my experience, easy email is the best option available for Drupal these days. And that module requires at least 2 steps in an ECA model:
- Create an email entity: provide a token name in which that email entity will be stored, you need that for the second step. In type you select the email template that you created before.
- Send email: in that action you provide the token name that you used in the first step when you created the email entity. This will send the email with the settings from the easy email module, e.g. symfony mailer or smtp or otherwise.
In between the 2 steps you can set field values of the email entity, if needed.
Afterwards you can also save the entity, otherwise it will not be stored. But you don't have to.
- Status changed to Fixed
4 months ago 1:00pm 8 December 2024 - π¨π¦Canada joelseguin Ontario, Canada
This might be useful for some, the module maintainer of Easy Email has covered how to send out emails using ECA and Easy Email in a webinar. Here is the location in the video where he goes through this:
https://youtu.be/2pjFr3cf9uw?si=IAUZd39dVMOz8o12&t=2426 - π«π·France alex.amtr
Hi,
Thank you for your help, but I would like to set email destinator address dynamically in ECA. I don't understand how to do that.
For exemple, I would like to send an email to my website members when they connect for the first time. It seems it is not possible to do it.
Is it possible to set the "TO" field dynamically from ECA? - π©πͺGermany jurgenhaas Gottmadingen
@alex.amtryou would add a entity reference field to a user entity to that email type and then you can add the current user to the email entity with ECA. As that email then knows that user, you get a token to that user's email address which can be configured in the TO field of the email.
- π«π·France alex.amtr
@jurgenhaas
Thank you very much. I will try with your advice.
Best regards, Automatically closed - issue fixed for 2 weeks with no activity.