Mail send with OAuth 2.0 - Fixed HTML with variables

Post Reply
schmitzdp
Member
Posts: 64
Joined: Thu Aug 06, 2020 1:36 pm

Mail send with OAuth 2.0 - Fixed HTML with variables

Post by schmitzdp »

Hello,

I need to migrate my default email sending application to ‘Mail send with OAuth 2.0’.

I was sending a fixed HTML file that contained variables.

For example:

Code: Select all

[Metadata.Text:Dataset="Payload",Model="JSON",Path="/Number"] 
These are no longer interpreted by ‘Mail send with OAuth 2.0’.

However, the variable [Job.NameProper] is interpreted correctly.

Is there anything in the syntax that needs to be changed?

Thanks
freddyp
Advanced member
Posts: 1166
Joined: Thu Feb 09, 2012 3:53 pm

Re: Mail send with OAuth 2.0 - Fixed HTML with variables

Post by freddyp »

Private data is also interpreted correctly. It is therefore advised to define all the variables you need as private data keys (you can do that on the folder preceding the Mail send) and use the private data keys in the HTML template.
schmitzdp
Member
Posts: 64
Joined: Thu Aug 06, 2020 1:36 pm

Re: Mail send with OAuth 2.0 - Fixed HTML with variables

Post by schmitzdp »

Thanks for your advice.
I've changed my flow as you suggested.
Post Reply