Unable to Send Email with attachment


I am facing issue while sending email with attachment from dev server.

Error Message:
Send Mail Message: Upload failed after 0 bytes. Google.Apis.Requests.RequestError\r\nInvalid To header [400]\r\nErrors [\r\n\tMessage[Invalid To header] Location[ - ] Reason[invalidArgument] Domain[global]\r\n]\r\n"

Thank you in advance for any help you can provide.

Hi @iamgeet

What is the size of the attachment?

Size 200-700KB

Thank you, I will check.

Geet M

1 Like


I had the same issue, in my case one of the emails was bad written, I missed the last ā€˜sā€™.

e.g. xxxx@gmail.e as soon i wrote xxx@gmail.es it worked perfectly.