Help - cannot send email (gmail)

hi there, wasted hours today. I’m simply passing an email address via the AI agent to the gmail node and it always comes up with - Invalid email address (item 0)

The email address ‘{{ $fromAI(‘recipient’) }}’ in the ‘To’ field isn’t valid

But i check the email address output and it’s fine, I think the AI agent prompt is OK and also if i manually add an email address into the gmail node it will send an email (I’ve spent a long time checking settings in Google console and think it’s fine) - this should be so simple and i can’t figure it out. any help much welcomed!!!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

After sending i figured it out. I had the settings on Fixed and not Expression - d’oh!!

1 Like

Glad you figured it out! (We have some ideas to help users avoid this)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.