簡體   English   中英

通過 firebase javascript 發送 email

[英]sending email through firebase javascript

我有一個反應,javascript,firebase 應用程序,我需要在客戶注冊我的應用程序時向他們發送歡迎 email,但只有在他們付款后。 firebase seems to allow me to send out emails, but is there code I can put in my success function that allows me to trigger the email when I want, instead of when a user registers using the auth functionality in firebase?

您可以使用此firebase 擴展,但您必須使用Blaze 計划

這是如何使用觸發器的示例

admin.firestore().collection('mail').add({
  to: 'someone@example.com',
  message: {
    subject: 'Hello from Firebase!',
    html: 'This is an <code>HTML</code> email body.',
  },
})

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM