APIs & Integrations

EStoller
Miembro

Single send transactional mail API returns "sendResult":"INVALID_TO_ADDRESS"

resolver

Hello,

I am trying to use the single send transactional send (POST request), but no matter what mail addreses I try I get this error when checking the send's status: 

"sendResult":"INVALID_TO_ADDRESS"

 Please advise

0 Me gusta
1 Soluciones aceptada
EStoller
Solución
Miembro

Single send transactional mail API returns "sendResult":"INVALID_TO_ADDRESS"

resolver

Hi @Jaycee_Lewis,

Actually the problem was the other "to" fields - 'cc' and 'bcc', not the legitimate address in the "to" field. They were populated with an example array that didn't contain a proper email. Something like ["string"]. Removing those fields/populating them with proper emails solved the problem.

Big thanks to Tom from support that helped me with that one.

Ver la solución en mensaje original publicado

0 Me gusta
2 Respuestas 2
Jaycee_Lewis
Administrador de la comunidad
Administrador de la comunidad

Single send transactional mail API returns "sendResult":"INVALID_TO_ADDRESS"

resolver

Hey @EStoller 👋. Great question. In my experience, this is typically a result of using a temporary or throw-away domain. 

 

Are the addresses you are working with temporary-type domains?

 

Thanks! – Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Me gusta
EStoller
Solución
Miembro

Single send transactional mail API returns "sendResult":"INVALID_TO_ADDRESS"

resolver

Hi @Jaycee_Lewis,

Actually the problem was the other "to" fields - 'cc' and 'bcc', not the legitimate address in the "to" field. They were populated with an example array that didn't contain a proper email. Something like ["string"]. Removing those fields/populating them with proper emails solved the problem.

Big thanks to Tom from support that helped me with that one.

0 Me gusta