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 Apps / Html Tags not working ...
Power Apps
Unanswered

Html Tags not working when sending email using SMTP.SendEmailV2

(1) ShareShare
ReportReport
Posted on by 776

When sending an email with the code below the HTML tags are printed out in the email. 

 

SMTP.SendEmailV3({
 From: "pappuser@weutt.onmicrosoft.com",
 To: cmbTutorName.Selected.Email,
 CC: gblCurrentUser.O365MyProfile.mail,
 Subject: "UTT Peer Tutoring Programme (PTP) - Application for Peer Tutoring Services: " & gblCurrentForm.FormStatus & " Course: "& gblCurrentForm.'Course Code' & "-" & gblCurrentForm.CourseTitle,
 Body: "Sent on behalf of the <b>UTT Peer Tutoring Programme - Application for Peer Tutoring Services" & "<br>" & "The Student," & gblCurrentForm.StudentName.DisplayName & " has submitted a peer tutoring request from and is requesting your tutoring assistance." & "<br>Plesae <a href='[App Link]?ItemId=" & gblCurrentForm.ID & "'>Click here</a> to view the request from.<br>" & "<br><br>Request Form ID: " & gblCurrentForm.ID & "Regards, <br>PEER TUTORING PROGRAMME SERVICES" 
})

 

How the email is sent:

rpersad_1-1719942166961.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    Giraldoj Profile Picture
    762 Super User 2025 Season 2 on at

    Hi @rpersad 

     

    It looks like the HTML tags are being displayed as plain text instead of being rendered in the email body. This issue occurs because the email is being sent as plain text rather than HTML.

    To fix this, you can try adding the IsHTML parameter. Here is how you can adjust your code to specify the content type,  Updated Code:

     

     

    SMTP.SendEmailV3({
     From: "pappuser@weutt.onmicrosoft.com",
     To: cmbTutorName.Selected.Email,
     CC: gblCurrentUser.O365MyProfile.mail,
     Subject: "UTT Peer Tutoring Programme (PTP) - Application for Peer Tutoring Services: " & gblCurrentForm.FormStatus & " Course: "& gblCurrentForm.'Course Code' & "-" & gblCurrentForm.CourseTitle,
     Body: "Sent on behalf of the <b>UTT Peer Tutoring Programme - Application for Peer Tutoring Services</b><br>The Student, " & gblCurrentForm.StudentName.DisplayName & " has submitted a peer tutoring request and is requesting your tutoring assistance.<br>Please <a href='[App Link]?ItemId=" & gblCurrentForm.ID & "'>Click here</a> to view the request.<br><br>Request Form ID: " & gblCurrentForm.ID & "<br>Regards, <br>PEER TUTORING PROGRAMME SERVICES",
     IsHtml: true
    })

     

     

    Im not 100% sure it will work because that parameter is now present in the deprecated sendemail actions, and I haven't used it in a long time, but give it a shot and let me know,

    you can find more information about the sendemail action and the available parameters bellow:
    https://learn.microsoft.com/en-us/connectors/smtp/#send-email-(v3)

     

    If my response resolved your issue, please feel free to mark it as the solution by clicking "Accept as solution." This helps others find the answer more easily. If you found the content helpful in any other way, a "Thumbs Up" would be greatly appreciated. Thank you!

  • Verified answer
    rpersad Profile Picture
    776 on at

    Hi @Giraldoj,

    Thank you for the response, it did solve my issue.

     

    However, this is a problem, from what I am aware of, only occurs with the current application I am developing. All of the older applications, in the business, that uses the same Send Email V2 works with no issues, without the IsHTML parameter, so I cannot say for sure it will also work 100% of the time. I did also try using Send Email V3 and it worked without the IsHTML parameter. I was wondering if anyone would have known if there was an update to the Send Email V2 that would have explained this change.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard