web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / using SMTP connector t...
Power Automate
Unanswered

using SMTP connector to send email with multiple attachment

(0) ShareShare
ReportReport
Posted on by 100

Using SMTP connector to send email with multiple attachment, but i get some error how to fix it?

 

hong_yip_1-1624588741797.png

hong_yip_2-1624588787389.png

hong_yip_3-1624588859551.png

 

 

 

Categories:
I have the same question (0)
  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @hong_yip 

    Please change the "content" to "ContentBytes" as below and try again:

    vLilyWmsft_0-1624590687419.png

    Best Regards

    If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

  • hong_yip Profile Picture
    100 on at

    changed the "content", same error

     

    hong_yip_3-1624591506058.png

     

    hong_yip_2-1624591478330.png

     

     

     

  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @hong_yip 

    Your picture shows that you changed the "Name" instead of changing "content" to "ContentBytes"

    vLilyWmsft_0-1624592182554.png

    Please change the "content" to "ContentBytes" and try again:

    vLilyWmsft_1-1624592218868.png

    Best Regards

  • hong_yip Profile Picture
    100 on at

    sorry

     

    same error

     

    hong_yip_1-1624592865796.png

     

     

     

     

  • v-LilyW-msft Profile Picture
    Microsoft Employee on at

    Hi @hong_yip 

    Could you share me the data structure of SMTP attachment in the following way?

    Because of restrictions, I can’t test SMTP, so I use Send an email (V2) as an example.

    Feel free to fill in the contents of Attachment Name -1 and Attachment Content -1, and then click this icon 

    vLilyWmsft_2-1624611361927.png

    vLilyWmsft_0-1624611305169.png

     

    vLilyWmsft_1-1624611305172.png

    This is the attachment data structure of Outlook. Please share the data of SMTP with me, thank you.

    vLilyWmsft_3-1624611393677.png

    Best Regards

  • hboujaoude Profile Picture
    4 on at

    hey guys, so no solution for this?

  • mert_ucar Profile Picture
    26 on at

    Hi, can you edit your code as below? If the issue is resolved, please mark it as resolved.

    {
     "FileName": @{items('Apply_to_each')?['DisplayName']},
     "ContentData": @{body('Get_attachment_content')},
     "ContentBytes": @{body('Get_attachment_content')['$content']},
     "ContentType" : ""
    }

     

    have a nice day

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard