Okay, so you are using Wix CRM and the emailContact function, so firstly please make sure that you are trying to email a contact or a site member from your website.
What’s the difference between wix-crm and wix-users?
The CRM API contains functionality for working with your site’s contacts. The Users API contains functionality for working with users who are logged-in members. Note that all members are also contacts, but contacts are not necessarily members.
For sending to set contacts other than the current public user, then you are better off using Wix CRM Backend anyway.
https://www.wix.com/corvid/reference/wix-crm.html#emailContact
https://www.wix.com/corvid/reference/wix-crm-backend.html#emailContact
Plus with Wix Users, you have to use the backend if you are wanting to send to a user who isn’t the logged in user.
Wix Users
The emailContact function here sends an email to the currently logged in user.
https://www.wix.com/corvid/reference/wix-users.html#emailUser
Wix Users Backend
The emailContact function here sends an email to any site member that you specify,
https://www.wix.com/corvid/reference/wix-users-backend.html#emailUser
As for the email not being correct for the triggered email, then you need to be defining the contactID of the contact that you are trying to send to, as currently you have it set up as a value whereas it should be of a type string.
import wixCrm from 'wix-crm-backend';
export function myBackendFunction() {
let contactId = // get contact ID
let value1 = // value for variable1
wixCrm.emailContact("emailID", contactId, {
"variables": {
"variable1": value1,
"variable2": "value for variable2"
}
} )
.then( () => {
// email has been sent
} )
.catch( (err) => {
// there was an error sending the email
} );