Wix velo and Sendgrid

Sendgrid is a good way to send mails from Wix Aplications. Sendgrid was free for a maximum of 100 mails per day. But it seems to change, it will soon cost, for the minimum use, up to 10-20EUR par months !!!
IS there an alternative solution proposed by wix to avoid this expensive solution for only a few mails per month?
Thanks for the comments

Are you able to explain a little more?

You’ve replaced all of the Wix Apps emails with ones built in Sendgrid?

emailjs. Been using that instead of sendgrid since 2021. Has free level.

2 Likes

For some specific application, I have a form rather complex (not compatible with standard forms), that capture the results of a survey done by controlers. According to what was reported, differents mails (with different text and receivers) are generated (and sent with sendgrid). I understand from another answer that emailjs could be a good alternative

This sounds more like a custom development, where someone has written an integration with Sendgrid for your use case - rather than an integration offered by Wix out of the box

Yes, this is a custom development I have made

Have you explored triggered emails - About Triggered Emails? You’ll probably find that a lot of these platforms have quotas to them :upside_down_face:

Thanks it looks promising, but I have problems to use it in Wix. I have created an empty template. Object, email adress, mail message are generated from wix code and should be passed. So I put template params to receive these information.
I used this code for testing
const params = {
user_id: ‘MvBCm0…’,
service_id: ‘service_y…’,
template_id: ‘template_1pe…’,
template_params: {
subject: ‘Sujet encodé’,
message: ‘message encodé’,
email: ‘sentiers5140@gmail.com’,
},
}

const headers = {
‘Content-type’: ‘application/json’,
};

const options = {
method: ‘POST’,
headers: headers,
body: JSON.stringify(params)
}

fetch(‘https://api.emailjs.com/api/v1.0/email/send’, options)
.then((response) => {
if (response.ok) {
console.log(‘SUCCESS!’);
} else {
return response.text().then((text) => Promise.reject(text));
}
})
.catch((error) => {
console.log('FAILED… ', error);
});
I got : FAILED… TypeError: Failed to fetch
Any idea how to have it work

Ok problem fixed. It works, but at the backend process, you should make a different setup of emailJS and supply other params as private-key to have it work. Thanks for the suggestion of emailJS.