Ben dışarı sıralamak için çalışıyorum bir sorun biraz var.
2 adımlı formu var
page 1 (mandatory): fill in your personal details
page 2 (optional): complete your inventory
Ikinci sayfa tamamlanırsa anda formu 2 alıcıya, 1 e-postaları ilk sayfa tamamlandıktan sonra, ve bir tane gönderir. Bu kişisel bilgiler aşağıda yer envanter var ve konu satırında "teklif isteği (2 e-2)" devletler dışında ikinci bir e-posta ilk aynıdır.
Şimdi ben ilk e-posta gönderme ve ikinci adımı terk / iptal edilirse, yalnızca gönderebilirsiniz geciktirebilir bir şekilde düşünmeye çalışıyorum.
Bu oldukça yaygın bir sorun gibi geliyor, herkes herhangi bir basit çözümler var? Ben ile gelebilir iyi şudur:
1) Step 1 is completed and email is not sent instead a database boolean "sent" set to false along with a timestamp 2) the user is given 15 minutes to fill in the second form, if it is not completed in that time a cronjob will detect it and email the personal user details without the inventory and set the database bool "sent" to true
Kullanıcı daha uzun 15 dakika sürer, sonra ben e-posta tekrar gönderilmesini gerekecek sanırım, bu nedenle yinelenen e-postaları engelleyen bir failproof yol değil ..
herhangi bir öneriniz?