https://supertokens.com/ logo
give HTML to smtp body
y

yvstrishul

05/24/2023, 7:41 AM
While changing content of email in smtp method. I would like to give html file as value for body property. What will be the syntax to insert file there?
r

rp

05/24/2023, 7:52 AM
hey @yvstrishul i think you can just give the html string as the body
y

yvstrishul

05/24/2023, 7:55 AM
My html is a bit lengthy, so I would like to insert file if possible
r

rp

05/24/2023, 7:57 AM
that won't be possible. You could always just read from the file in that function.
p

PoktBlade

05/24/2023, 9:31 AM
+1 this is what i did, read html file and insert into body. afaik this is standard as attaching a html file won't dispaly properly in email readers