Best answer

Gmail error: Header values can't contain newlines (got 'xxxxxx\n' for header 'To')

  • 23 August 2023
  • 5 replies
  • 1787 views

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

Hi everyone, 

I’m a new Zapier user and trying to create a Zap where I get notified via gmail every time that someone new fills out my form (I created it using tally.so).

This is a pretty simple 2-step flow but I keep encountering this error message and I’m not sure why:

Failed to create a send email in Gmail

Header values can't contain newlines (got 'grace@Housing.info\n' for header 'To')


All I’m doing is inserting my email in the To line. Do I need to use a different value there?

 


Thanks in advance for your help! :)

 

icon

Best answer by Troy Tessalone 23 August 2023, 03:14

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Userlevel 7
Badge +14

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

Hi @speekie 

Good question.

Remove the line break after the email address.

 

This post has been edited by a moderator to remove personal information. Please remember that this is a public forum and to remove any sensitive information prior to posting.

Thanks for getting back to me Troy!

I tried doing that (see attached) and still get the same error :( 

Am I doing this correctly?

 

 

Userlevel 7
Badge +14

@speekie 

Try testing again.

If the error persists, please post updated screenshots with how your Zap steps are configured along with the encountered error.

I think it works now, thank you very much for your help!

Userlevel 7
Badge +11

That’s brilliant news @speekie! Thanks so much for taking the time to come back here to confirm it’s working, it’s much appreciated! 

Seems like you’re all set for now but please do hop back in the Community if you need help with your Zaps again - we’re always here and happy to assist! 🤗