There’s a few ways to achieve this, but most of the time it’s done via Triggered Emails (Triggered Emails Introduction | Velo) - that said, it uses a contacts/members UUID, rather than their email address to send the email
Thank you for your answer.
I suppose this will verify and take the mail of the contact coillection?
But i have my own “Customers” collection, and i would like to send e mail from my collection, not wix contact.
On my page i have multiple variables like email, name, IDClient, etc …
Sending triggered email is a very good idea (i creataed several models), but how to send them by clikcking on a button (not a submit form), a simple and independant button, and take the varaiables on the page, not in contacts collection.
Wix Triggered Emails can send emails to a contactId or a memberId. Which means the user would have to be one of these, and the collection you’re fetching the emails from, should have some kind of reference which points to the Members App Collection. And the email will be sent to the associated email addresses of the contact / member.
Why is your account blocked? That only SendGrid can answer. While almost all the tutorials for sending emails through Wix Velo are related to SendGrid, it’s not the only service out there. There are a lot of other email providers like Brevo, Resend, etc. which provide APIs that you can use to integrate these into your site.
The only thing being that since you’re doing this yourself, you will have to go through the docs of the service you’ll be using, and figure out how to integrate it into your site. The possibilities here are endless. I have also developed an integration which triggers email directly from a Gmail account - no third party email providers required. Only that it is much more complex than simply configuring an API.
If you want to start easy, you can try out Zapier or other similar services that provide automated emails on Premium / Free Plans.
I’m sorry, but I come back again : it still doesn’t work.
Let me explain : the Customers can not log in the site : no subscription possible : they don’t have accounts: Only 2 or three persons can log in (2 employees and myself).
Customers make a reservation from a form on a page (without even registering), and after that I receive a notification of this reservation. So i log in as admin in the “back office” that I created, and I validate their reservation. At this point, an email must be sent to the customer to confirm his reservation (this email is in a field of the form that I validate).
However, the problem: it is me who receives the confirmation email, because it is me who is connected, and not the customer. I would like it to be sent to the customer who has sent the reservation, by retrieving maybe his ID or something else?
Question : is it possible to retrieve the ID of the client by a code (not a member, just a contact), and then i will try with a code to send the mail to this ID.
I’ve got this error the the google console : 109 Error: contactId does not match current session contact (401)
I know how to do for a member but with a simple contact?