Our website uses Wix Code to collect Trial Requests from users and send them the requested trials automatically via triggered emails.
Basically, our code will do the following:
Check if provided form submission email exists on a dedicated DB. This database links email addresses, CRM user ID and an assigned trial product key.
If the user exists, we send email template A, using a wixCRM.emailContact call to the CRM user, and another contact reserved for our sales email. This way bothe our sales and the user itself get an email indicating this email is already registered.
If the User doesn't exist, we:
- Take a trial PK from another DB
- Create a CRM user
- Insert the CRM, along with the email and assigned PK to the DB
- Send an email to both the user and our sales contact
This setup was working pretty well until recently, where we noticed that trial requests are coming in, getting assigned with a PK and CRM contact ID, inserted to the DB, but no email is sent out to the clients, on a testing session we saw an email address requesting trial and not getting an email (gets PK and new CRM ID well), yet few minutes later, when cleared the tables and run that exact same scenario - it worked!
Are you familiar with any open issues with wixCRM.emailContact? are we doing anything wrong? is there a way to get logs of Backend .jsw functions ? - that would help us debug as it does not reconstruct
We know for a fact that new requests came in as our custom DBs are getting filled with new emails and CRM IDs, and users are redirected to a thank you page - which happens only after firing a wixCRM.emailContact event..
Any information will be helpful as wix support could not assist much over the phone, and this is pretty much critical service for us - we want to avoid integrating a 3rd party email supplier like sendgrid..