feat(api): migrate send_email to v3 action endpoint
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user