diff --git a/src/routes/events_speakers/10_edit_modal__event_presenter_obj.svelte b/src/routes/events_speakers/10_edit_modal__event_presenter_obj.svelte index a22a6602..36eb3b3e 100644 --- a/src/routes/events_speakers/10_edit_modal__event_presenter_obj.svelte +++ b/src/routes/events_speakers/10_edit_modal__event_presenter_obj.svelte @@ -863,8 +863,8 @@ async function handle_update__event_presenter({ api.send_email({ api_cfg: $ae_api, - from_email: 'scott.idem+from@oneskyit.com', - from_name: 'Scott Idem', + from_email: 'noreply+chow@oneskyit.com', + from_name: 'CHOW 2024 Speaker Hub', to_email: $slct.event_presenter_obj.email, subject: subject, body_html: body_html, diff --git a/src/routes/sponsorships/10_edit_modal__sponsorship_obj.svelte b/src/routes/sponsorships/10_edit_modal__sponsorship_obj.svelte index df7c3515..a58fdfb2 100644 --- a/src/routes/sponsorships/10_edit_modal__sponsorship_obj.svelte +++ b/src/routes/sponsorships/10_edit_modal__sponsorship_obj.svelte @@ -56,6 +56,7 @@ if ($slct.sponsorship_id) { description: null, poc_person_id: null, + poc_json: {}, logo_li_json: null, media_li_json: null, @@ -488,6 +489,7 @@ async function handle_submit_form(event) { if ($store_current_tab == 'start' && $slct.sponsorship_id) { $store_current_tab = 'marketing'; + send_init_confirm_email(); // If level is 2 or above then they can go to the exhibits tab. } else if ($store_current_tab == 'marketing' && $slct.sponsorship_id && $slct.sponsorship_obj.level_num >= 2) { @@ -724,6 +726,22 @@ async function handle_update__sponsorship({ return ae_promises.update__sponsorship_obj; } + +function send_init_confirm_email() { + let subject = `CHOW 2024 Sponsor Hub Link for ${$slct.sponsorship_obj.name} (ID: ${$slct.sponsorship_id})`; + + let body_html = `

Thank you for your submission to the Sponsorships Hub. You are an integral part of Capitol Hill Ocean Week and we appreciate your participation. If you need to make any changes or updates to your submission, you may access it via the below hyperlink:

Name: ${$slct.sponsorship_obj.name} (Sponsor ID: ${$slct.sponsorship_id})

Use this link to view or update your CHOW 2024 speaker information.

Copy and paste link: ${$ae_loc.mod.sponsorships.link}

` + + api.send_email({ + api_cfg: $ae_api, + from_email: 'noreply+chow@oneskyit.com', + from_name: 'CHOW 2024 Sponsor Hub', + to_email: $slct.sponsorship_obj.poc_json.email, + subject: subject, + body_html: body_html, + }); + +} @@ -1331,31 +1349,21 @@ async function handle_update__sponsorship({ {/if} - + -->