cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RobinSmrkolj
New Member

Empty HTML body with SMTP connector

Hi Guys,

 

I have a problem with HtmlText in SMTP Email connector (V3) : My app is supposed to send emails when a form is submited.

I am using an HtmlText box to generate the boddy of this email.

When I am testing the app in preview it is working like a charm, but if I am "Playing" the app (not in the "edit preview mode"), the email sent is empty (it shows "enter your HTML text here.") as if my Html text box was empty ...

 

 

 

OnSuccess : SMTP.SendEmailV3(
{
From: "Awesome@mailaddress.com";
To: "Awesome2@mailaddress.com";
Subject: MailReservationTObject.Text;
Body: MailReservationT1Body.HtmlText
}
);;
SMTP.SendEmailV3(
{
From: "Awesome@mailaddress.com";
To: User().Email;
Subject: MailConfirmationUserTObject.Text;
Body: MailConfirmationUserTBody.HtmlText
}
);;
Navigate(EcranDeValidation;ScreenTransition.Cover)

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @RobinSmrkolj ,

 

The point is that after you submit your form the controls in the form will be reset. Then you will get the default value of MailConfirmationUserTBody .

 

You could try:

1\Set MailConfirmationUserTBody 's OnChange property to:

Set(HTMLValue,self.HtmlText)

2\OnSuccess : 

SMTP.SendEmailV3(
{
From: "Awesome@mailaddress.com";
To: "Awesome2@mailaddress.com";
Subject: MailReservationTObject.Text;
Body: HTMLValue
}
);;
SMTP.SendEmailV3(
{
From: "Awesome@mailaddress.com";
To: User().Email;
Subject: MailConfirmationUserTObject.Text;
Body: HTMLValue
}
);;
Navigate(EcranDeValidation;ScreenTransition.Cover)

Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @RobinSmrkolj ,

 

The point is that after you submit your form the controls in the form will be reset. Then you will get the default value of MailConfirmationUserTBody .

 

You could try:

1\Set MailConfirmationUserTBody 's OnChange property to:

Set(HTMLValue,self.HtmlText)

2\OnSuccess : 

SMTP.SendEmailV3(
{
From: "Awesome@mailaddress.com";
To: "Awesome2@mailaddress.com";
Subject: MailReservationTObject.Text;
Body: HTMLValue
}
);;
SMTP.SendEmailV3(
{
From: "Awesome@mailaddress.com";
To: User().Email;
Subject: MailConfirmationUserTObject.Text;
Body: HTMLValue
}
);;
Navigate(EcranDeValidation;ScreenTransition.Cover)

Best Regards,

Bof

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,153)