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

Notifications

Announcements

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
    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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard