Problems sending email
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 06:23 AM
I created an email in my 'Logic and automation' of my application, I managed to format the email so that it is sent to a specific user and assign a Google email to him, but he doesn't send the email, what's left for me to be able to send ? Shouldn't it run from the moment I created the Email?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 07:08 AM
Creating an email in the 'Logic and Automation' section of your application is typically just a part of the process. To actually send the email I think you need to set up an action that triggers the sending of the email.
You can write business rule trigger the email, below is the sample code:
(function executeRule(current, previous /*null when async*/) {
// Check if the record meets the conditions to trigger the email
if (current.some_field === 'some_value') {
// Get the email template
var emailTemplate = gs.getProperty('your_email_template_sys_id'); // Replace 'your_email_template_sys_id' with the Sys ID of your email template
// Get the recipient's email address
var recipientEmail = 'example@example.com'; // Replace with the actual email address
// Send the email
gs.eventQueue('email.send', current, 'Your email subject', emailTemplate, recipientEmail);
}
})(current, previous);
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-18-2024 07:47 AM
I'm doing it this way, I don't want to add code, but I don't know what's wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 07:09 AM
Hi @Arthur Sanchez ,
Could you please share some snapshot of what you have configured ?
Please mark this comment as Correct Answer/Helpful if it helped you.
Regards,
Swathi Sarang
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2024 07:44 AM