# How does the NovuloEmailSendEmailAction work?

**URL:** <https://community.novulo.com/t/how-does-the-novuloemailsendemailaction-work/217>\
**Category:** \[Q&A\] Components, Datasets and Plug-ins\
**Created:** [June 3, 2024, 2:11pm UTC](https://community.novulo.com/t/how-does-the-novuloemailsendemailaction-work/217 "2024-06-03T14:11:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.batzke](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.novulo.com/j.batzke/32/9_2.png) [@j.batzke](https://community.novulo.com/u/j.batzke)\
**Post date:** [June 3, 2024, 2:11pm UTC](https://community.novulo.com/t/how-does-the-novuloemailsendemailaction-work/217/1 "2024-06-03T14:11:18Z")

</div>

When the plugin action NovuloEmailSendEmailAction is triggered, a few parameters have to be set for it to send an email successfully. The image below is an implementation within M7655  
 ![image](https://canada1.discourse-cdn.com/flex008/uploads/novulo/original/1X/d2dc88d72e9c1ac87af44d18664cf886e883b7b9.png)

If I understand it correctly, the “from” parameter is the name of the sender, not the email address of the sender.  
Where is the “from email address” defined?  
Can I choose dynamically between different “from email addresses” from within a Novulo application?

---

<div class="post-metadata">

**Author:** ![m.gechev](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@m.gechev](https://community.novulo.com/u/m.gechev)\
**Post date:** [June 3, 2024, 2:14pm UTC](https://community.novulo.com/t/how-does-the-novuloemailsendemailaction-work/217/2 "2024-06-03T14:14:35Z")

</div>

Hi Joachim,  
The from parameter is the one used to define the sender of the Email.  
It is in the form of Tuple\<string, emailaddress\>  
Where the string is used for Display name and the emailaddress (value of the tuple) is a value that is of type emailaddress (or string, that represents a valid email address)  
Where you get it from, the plugin action does not care. As long as you provide this required parameter in the form Tuple\<display\_name, emailaddress\> (or i.o.w. Tuple\<string,mixed\>) it should work out.

---

<div class="post-metadata">

**Author:** ![j.batzke](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.novulo.com/j.batzke/32/9_2.png) [@j.batzke](https://community.novulo.com/u/j.batzke)\
**Post date:** [June 3, 2024, 2:23pm UTC](https://community.novulo.com/t/how-does-the-novuloemailsendemailaction-work/217/3 "2024-06-03T14:23:10Z")

</div>

Thank you!

As an additional question: Is there any validation on the e-mail address of the sender?

I would imagine that choosing a random email address like “[thisemailaddressdoesnotexist@test.com](mailto:thisemailaddressdoesnotexist@test.com)” would result in a failed attempt to send the e-mail.

If a validation exists, how do I know which e-mail addresses are allowed?

---

<div class="post-metadata">

**Author:** ![m.gechev](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@m.gechev](https://community.novulo.com/u/m.gechev)\
**Post date:** [June 3, 2024, 2:29pm UTC](https://community.novulo.com/t/how-does-the-novuloemailsendemailaction-work/217/4 "2024-06-03T14:29:42Z")

</div>

As far as I know the only validation that can be performed is on the used E-mail address field within the novulo application.  
The value itself is not checked in the plugin action itself. It could be that Aspose Email does some validations before sending the actual message, but I don’t think its the case, as I think there is no way to determine if an email address exists withouth attempting to send a message to it.

---

<div class="post-metadata">

**Author:** ![j.batzke](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.novulo.com/j.batzke/32/9_2.png) [@j.batzke](https://community.novulo.com/u/j.batzke)\
**Post date:** [June 3, 2024, 3:14pm UTC](https://community.novulo.com/t/how-does-the-novuloemailsendemailaction-work/217/5 "2024-06-03T15:14:43Z")

</div>

I contacted @HenkWilms for further clarification. An [SPF](https://en.wikipedia.org/wiki/Sender_Policy_Framework) record determines which senders are allowed. This record is not accessible from within the Novulo application.

So it seems like there is no validation yet to filter out invalid sending email addresses on the Novulo side. In my opinion, a new feature should be developed within a Novulo component to run a custom validation before sending an email. The validation (e.g. regex) should match the logic of the SPF record. This should allow users to fix email errors before they occur.
