- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2024 09:47 AM
i just try this :
***********************
var emailID = current.variables.e_mail_perso_de_l_utilisateurs ;
answer = [emailID];
***********************
but not working, any suggestion ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2024 07:33 AM
// Retrieve the email address from the single-line text variable
var emailID = current.variables.e_mail_perso_de_l_utilisateurs;
// Check if the email address is valid
if (emailID) {
// If the email address is valid, send the email notification
gs.eventQueue('email.send', current, 'Notification', 'notification.template', emailID, 'Test subject', 'Test message');
answer = 'Email sent to ' + emailID;
} else {
// If the email address is empty or invalid, handle the error
answer = 'Error: No valid email address found';
}
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2024 07:33 AM
// Retrieve the email address from the single-line text variable
var emailID = current.variables.e_mail_perso_de_l_utilisateurs;
// Check if the email address is valid
if (emailID) {
// If the email address is valid, send the email notification
gs.eventQueue('email.send', current, 'Notification', 'notification.template', emailID, 'Test subject', 'Test message');
answer = 'Email sent to ' + emailID;
} else {
// If the email address is empty or invalid, handle the error
answer = 'Error: No valid email address found';
}
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2024 11:39 AM
thank you it's working