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 / SMTP connector - send ...
Power Automate
Unanswered

SMTP connector - send email with attachment

(1) ShareShare
ReportReport
Posted on by 64

hi i would like to use the SMTP connector to send messages from an account outside of my organization. I need to send a message with an attachment. I don't know how to set its parameters.

 

The photo shows the attachment settings in the Office365 Send email connector. How to set the same in the SMTP connector?

 

smtp_att_cnfg.png

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Mjetek404 ,

     

    Please take a look at this post.

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Send-attachment-in-Emails-using-SMTP-Connection/td-p/172280

     

    Best Regards,

    Wearsky

  • Mjetek404 Profile Picture
    64 on at

    Thank you for your help @v-xiaochen-msft 

    My attachment code looks like this

     

    [
     {
     "ContentData": @{body('Convert_file_using_path')},
     "ContentType": " ",
     "FileName": "Protokół_zbiorczy_@{triggerOutputs()?['body/Title']}.pdf",
     "ContentId": "1"
     }
    ]

     

    and it works 🙂

  • jsearcy Profile Picture
    40 on at

    This answer shows how to do it with PowerApps NOT with Power AUTOMATE. Any idea how to do this with Power Automate?

  • CU-19081228-9 Profile Picture
    on at

    @Mjetek404  @v-xiaochen-msft 

     

    Any chance you can look at my issue that is similar to yours and see what I am doing wrong? @jsearcy did you have any luck?

     

    https://powerusers.microsoft.com/t5/Building-Flows/Help-needed-with-SMTP-connector-send-email-v3-and-adding-an/m-p/2138858#M237254

  • yudhi12 Profile Picture
    2 on at

    Office365Outlook.SendEmail(TextSearchBox1.Text,TextEmailSubject1.Text,TextEmailMessage1.Text,{Attachments:AddColumns(RenameColumns(DataCardValue5.Attachments,"Value","ContentBytes"),"@odata.type","")})

     

    how to connect the SMTP connector 

     

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