What is your goal?
Fix the error in the Email module
What is the problem & what have you tried?
Hi! I have the following scenario: Webhook → Make AI Toolkit → Email (Send an Email).
The data.from field coming from the webhook contains the sender in the format “Name [email protected]” instead of just the clean email address. When I map it directly to the “To” field in the Email module, I get this error:
Couldn’t send the email in ActionSendEmail. The To field got an invalid email address from the webhook data.
Here’s what I’ve already tried:
• regex(2.data.from; "pattern") → Error, it says the regex function does not exist in Make
• get(match(2.data.from; "pattern"); 1) → Still not working / the text editor overwrites what I type with browser autocomplete
• Mapping 2.data.to[1].value as suggested by the automatic error analyzer → Also didn’t resolve the issue
Does anyone know the correct syntax in Make to extract only the email from a string like “Name [email protected]”? Or is there a more direct way to clean this data before passing it to the Email module?
Thanks!
Error messages or input/output bundles
Error
Couldn’t send the email from this module. The To field got an invalid email address.
Possible fixes:
Use a valid email in the To field.
Trim extra text from the To mapping.
Add ifempty() for empty sender values.

