We updated the webinar timing to reflect U.S. daylight saving time. Please use the corrected schedule and links below.

'; $noteHtml = '

If you already saved the older calendar event, please remove it and add the updated one from this email.

'; $headline = 'Updated Webinar Details'; $introText = 'We updated the webinar timing to reflect U.S. daylight saving time. Please use the corrected schedule and links below.'; $noteText = 'If you already saved the older calendar event, please remove it and add the updated one from this email.'; } else { $subject = "Confirmation: You're Registered for {$eventTitle}"; $introHtml = '

Thank you for registering for the ' . $safeTitle . ' webinar.

We are excited to have you join us for this professional vibe-coding session.

'; $noteHtml = '

Your webinar link is below, and you can add the corrected event to your calendar right now.

'; $headline = "You're Registered!"; $introText = 'Thank you for registering for the ' . $eventTitle . ' webinar. We are excited to have you join us for this professional vibe-coding session.'; $noteText = 'Your webinar link is below, and you can add the corrected event to your calendar right now.'; } $bodyHtml = << {$safeTitle}
AppWizzy Logo

{$headline}

Hello {$safeFirstName},

{$introHtml}

Webinar details

{$safeDateLong} | {$safeBerlinLabel} | {$safeNewYorkLabel} | {$safeLosAngelesLabel}

Join the live session here:

{$safeJoinUrl}

{$noteHtml}

Join Webinar Add to Google Calendar

Download calendar file (.ics)

You'll learn the fastest way to go from an idea to a working app you own, running on your server, with your database, using real frameworks.

© 2026 AppWizzy. All rights reserved.

You can visit our website for more information.

HTML; $textBody = implode(" ", [ 'Hello ' . (trim($firstName) !== '' ? trim($firstName) : 'there') . ',', $introText, 'Webinar details: ' . $schedule['date_long'] . ' | ' . $schedule['berlin_label'] . ' | ' . $schedule['new_york_label'] . ' | ' . $schedule['los_angeles_label'], 'Join webinar: ' . $joinUrl, $noteText, 'Add to Google Calendar: ' . $googleLink, 'Download calendar file (.ics): ' . $outlookLink, ]); return [ 'subject' => $subject, 'html' => $bodyHtml, 'text' => $textBody, 'schedule' => $schedule, 'google_link' => $googleLink, 'outlook_link' => $outlookLink, 'join_url' => $joinUrl, 'event_title' => $eventTitle, ]; }