Question:
I really struggle to send triggered emails, if its via the memebrs or the contacts route. I can only send emails to logged in user, if I change contactId, it never works. see snippet code below. I have gotten to a point where I mannualy get the contactId via a createorappend function, and then just insert the contactId as per below. what am I doing wrong? and how can I send emails to vrious contact Id’s of different users logged in?
Product:
const contactId = contactInfo.contactId;
console.log(“Attempting to send email to, firstname:”, firstName, “email:”, userEmail, “contactId”, contactId);
await triggeredEmails.emailContact("UIqT89a", '679d6cad-dc25-4962-80c3-07116ae8a666', {
variables: {
ContactId: '679d6cad-dc25-4962-80c3-07116ae8a666'
},
});
What are you trying to achieve:
send email to different contactIds
What have you already tried:
All velo refrence documents and youtube videos I can find. Sometimes the email goes through, sometimes it does not, but only to logged in user, never to contactId of person not logged in.