Send attachement SMTP mail dosn't work

Hi everyone, on the n8n Cloud? I have a problem sending attachments by email. I retrieve a file from my Google Drive which I convert to Binary


When I send the email, I receive the email but there is never an attachment.
I thought about putting a name to the document I retrieved

This is the Output of email :
[

{

“accepted”: [

[email protected]

],

“rejected”: [

],

“ehlo”: [

“8BITMIME”,

“AUTH PLAIN LOGIN”,

“SIZE 141557760”

],

“envelopeTime”: 40,

“messageTime”: 15,

“messageSize”: 1849,

“response”: “250 Requested mail action okay, completed: id=1MPK73-1t3Enn2W7x-00US0u”,

“envelope”: {

“from”: “[email protected]”,

“to”: [

[email protected]

]

},

“messageId”: “[email protected]

}

]

Thank you for your help !

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:

Welcome to the community @Wamimy !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


I had no problem sending email with an attachment. Does your Google Drive node immediately preceds the SMTP Email node? If not that might be the reason. One way or the other, the binary file has to end up in the node that immediately preceds the node where that file is required. To achieve that you can apply one of the techniques described in [onedrive via Graph HTTP] why binary don't upload if not exactly previous node? - #2 by ihortom

Yes, thank you very much for your response. Indeed, the problem was that I had put Google Drive in a Third-Party Application on my n8n path.
(See picture)

this dosn’"t work

But I resolve the probleme like this: :slight_smile:

Thanks you very much !!

2 Likes

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