Tetikleyici E-posta uzantısıyla teslim durumunu yönetme
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Koleksiyona bir doküman eklendiğinde uzantı, e-posta teslimi için işleme alır. Uzantı, e-postayı işlerken dokümanda bir delivery alanı oluşturur ve günceller.
E-posta teslimi işleme
delivery alanı aşağıdaki alanlarla doldurulabilir:
state:PENDING, PROCESSING, SUCCESS veya ERROR değerlerinden biri.
startTime: E-posta işleme işleminin başladığı zaman damgası.
endTime: E-posta işleme işleminin tamamlandığı (yani SUCCESS veya ERROR durumuyla sonuçlandığı) zaman damgası.
hata: E-posta teslimi hatası varsa buraya bir hata mesajı girilir.
attempts: Bu e-postanın teslimi için yapılan deneme sayısı.
leaseExpireTime: Takılma veya zaman aşımı durumunda, PROCESSING durumunun hata olarak kabul edilmesi gereken zaman.
info: E-posta başarıyla teslim edildikten sonra (en az bir adrese) bu alan aşağıdaki alanlarla doldurulur:
messageId: Teslim edilen e-postanın ileti kimliği.
accepted: E-postanın başarıyla teslim edildiği e-posta adreslerinin dizisi.
rejected: E-postanın teslim edilemediği e-posta adreslerinin dizisi.
pending: SMTP tarafından geçici olarak reddedilen e-posta adreslerinin dizisi.
response: SMTP sunucusundan gelen son yanıt.
E-postalar genellikle PENDING adresinden PROCESSING adresine, SUCCESS veya ERROR adresine gönderilir. SUCCESS veya ERROR durumuna geçildikten sonra dokümanda yapılan ek değişiklikler, uzantının başka bir e-posta göndermesine neden olmaz. Belge güncellemeleri içeren bir e-postayı yeniden göndermek için state simgesini PENDING veya RETRY olarak değiştirebilirsiniz.
Manuel yeniden denemeler
E-posta tesliminin kurtarılabilir şekilde başarısız olduğu veya dokümanın küçük değişikliklerle uygun şekilde teslim edilmesi için manuel olarak düzeltilebileceği durumlar vardır. Yeniden denemeler otomatik olmasa da uzantının e-posta teslimini tekrar denemesi (ve attempts sayısını artırması) için delivery alanındaki state değerini manuel olarak RETRY olarak değiştirebilirsiniz.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],[],null,["\u003cbr /\u003e\n\nWhen a document is added to the collection, the extension picks it up for email\ndelivery processing. The extension creates and updates a `delivery` field in the\ndocument as it processes the email.\n\nEmail delivery processing\n\nThe `delivery` field can be populated with the following fields:\n\n- **state:** One of `PENDING`, `PROCESSING`, `SUCCESS`, or `ERROR`.\n- **startTime:** Timestamp when email processing began.\n- **endTime:** Timestamp when email processing completed (that is, ended in either a `SUCCESS` or `ERROR` state).\n- **error:** If there was an email delivery error, an error message will be populated here.\n- **attempts:** Number of delivery attempts for this email.\n- **leaseExpireTime:** In case of a hang or timeout, the time at which a `PROCESSING` state should be considered an error.\n- **info:** After successful email delivery (to at least one address), this field will be populated with the following fields:\n - **messageId:** The message ID of the delivered email.\n - **accepted:** Array of email addresses to which the email was successfully delivered.\n - **rejected:** Array of email addresses to which the email could not be delivered.\n - **pending:** Array of email addresses that were temporarily rejected by SMTP.\n - **response:** The last response from the SMTP server.\n\nAn email will typically go from `PENDING` to `PROCESSING` to either `SUCCESS` or\n`ERROR`. Once in the `SUCCESS` or `ERROR` state, additional changes to the\ndocument will not trigger the extension to send another email. To resend an\nemail with document updates, you can change the `state` to `PENDING` or `RETRY`.\n\nManual retries\n\nThere are instances in which email delivery fails in a recoverable fashion or\nthe document can be manually corrected for proper delivery with minor\nmodifications. While retries are not automatic, you can manually change the\n`state` in the `delivery` field to `RETRY` so that the extension attempts email\ndelivery again (and increments the number of `attempts`)."]]