Hi,
I read your article on the topic: Velo Tutorial: Sending an Email on Form Submission | Help Center | Wix.com
I need to send it using gmail instead of sendGrid. Unfortunately, I didn’t find any documentation specific to gmail. Did I miss it? Can you point me to it? Or write how it is done?
BTW, I saw similar questions but no real answer.
Hey,
Great question!
We don’t currently have an example on how to send email using GMail but it is possible. We will add this to our backlog. In the meantime, perhaps some Wix code evangelist in the forum can help you with that or you can reach out to a developer to get help.
Good luck!
So I did some digging. Google allows using gapi to interact with its SMTP server. But in-order to do that I have to add to my code a reference from an external library provided by google.
If my website was pure html I would add the reference using:
in the onload section. My problem is that I didn't see how to do it with wix code. I tried copy and paste the script as a backend jsw script but it fails because it uses objects like "window" and "document". Could you point me as to how I can add the reference to the external js file provided by google?Hi Alon,
Trying to achieve the same. Did you get this solved? If I find a solution I will let you know.
Thanks
Hi mcschaap,
Using google smtp looks like WIX should prepare an internal API as it is dependent on specific environment settings. I have switch to mailchimp which allows HTTP-REST API
Regards.
I have been able to send emails thru gmail using emailjs.com REST API. Full documentation here : https://girizano.wixsite.com/codecorner/home/send-email-thru-gmail-and-others-in-wix-code
Did you get solution? want to send email to contacts via smtp.