Hi, the image urls provided in the email templates...
# help
s
Hi, the image urls provided in the email templates are broken for my app. The images were rendered correctly in emails sent two days ago but for the ones sent yesterday and today they are broken. Can anyone from the Supabase team take a look?
n
Hello @sbr! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
If you need someone from the SB team to look into your project, you would need to go thru support.
n
sbr (2022-06-04)
g
You could also post info here and someone might be able to help, unless it is specific to your instance.
s
On further inspection, it seems like the googleusercontent..com/proxy/[...] url for the image changed from
ci5.googleusercontent..com/proxy/[random characters]/[image url]
to
ci4.googleusercontent..com/proxy/[different random characters]/[image url]
@garyaustin do you know why this would happen?
In all the emails where the image is rendered correctly, it is
ci5...
but in the newer broken ones, it is
ci4...
g
So you have url links to images added in your auth templates?
s
Yes
Emailed supabase support. Do you have an idea how long they take to reply on weekends? The default email reply gives a guarantee of < 5 days
This is a regression in production so all our users are facing this issue
g
I'm not sure it is Supabase though. That url is something gmail uses for images. In my thunderbird email the images don't use that url, but in gmail they do. For the same image.
s
Hmm, but I didn't change anything for the image urls to be break
g
I'll put an image url in one of my templates and see what I get.
s
Thank you @garyaustin ! Awaiting your result
g
I linked a public image in storage in the template and it comes thru as just an image in thunderbird email browser and on ci6.googleuser...... in gmail. Both work.
s
For me, it's not a public image in storage but rather an image hosted with the website
Would that make a difference?
g
I'm really not that familiar with what gmail does with the images. It could be something in the url format I guess, but I don't think the actual source should matter.
Unless they can't be read for some reason by Google....
s
Just checked that the image url is valid
g
Supabase is just passing html text in the email itself.
I assume you are using an tag.
s
Yes
g
So I really don't see how SB is doing anything to it.
Does the html in the email look correct?
s
Yes, verified it on a separate page
g
If you don't mind sending your img html with image url in it, I'll stick in my template and see what it does.
s
Fixed it @garyaustin ! Found it on a google support page that google prefers .png extensions for email images
Changed it to png and it worked
Thank you so much @garyaustin ! Really appreciate your help!
g
That is a bit odd, since it worked for you before.... hmmm
s
Yeah, not sure
Thanks for your time @garyaustin