Automated back end emails fails all the time

Hi , my Gemini AI generated app works so sweetly except for one issue I have been struggling with for months. It’s the inability of the app to send back-end automated emails to recipients e.g. to confirm registration, orders processed, invoices etc. I have an email (send from) with Hostinger and the app uses Resend to send emails. I suspect it has to do with the app accessing the Google Secrets Manager.

I would also like to know if Firebase Studio can be completely hosted in the cloud or if Firebase Studio CLI locally on my PC is required to sort this out? I(‘m trying to 100% avoid anything local on my PC and wish to have everything in the cloud. The lastest test email from the app yielded this message:

Unhandled Runtime Error

FirebaseError: internal

Source

src/app/page.tsx (176:15) @ error

  174 |       }
  175 |     } catch (error) {
> 176 |       console.error("Error sending test email:", error);
      |               ^
  177 |       toast({
  178 |         title: "Error Sending Email",
  179 |         description: error instanceof Error ? error.message : "An unknown error occurred.",