feat(api): migrate send_email to v3 action endpoint

This commit is contained in:
Scott Idem
2026-05-01 15:53:05 -04:00
parent 7cef6be54c
commit 878ff91c30
2 changed files with 42 additions and 10 deletions

View File

@@ -565,7 +565,7 @@ export const get_data_store_obj_w_code =
/* BEGIN: Utility: Email Related */
// Updated 2023-06-29
// Updated 2026-05-01 — migrated to the V3 action endpoint
export const send_email = async function send_email({
api_cfg,
from_email,
@@ -621,7 +621,7 @@ export const send_email = async function send_email({
return null;
}
const endpoint = `/util/email/send`;
const endpoint = `/v3/action/email/send`;
data['from_email'] = from_email; // Required
data['from_name'] = from_name;
@@ -664,11 +664,8 @@ export const send_email = async function send_email({
if (log_lvl > 1) {
console.log('Response Data:', send_email_post_promise);
}
if (return_obj) {
return send_email_post_promise;
} else {
return send_email_post_promise.event_abstract_id_random;
}
return send_email_post_promise;
};
/* END: Utility: Email Related */