email text adjust

This commit is contained in:
Flatlogic Bot 2025-10-31 11:50:58 +00:00
parent 551fb8d177
commit 487c883d7f
2 changed files with 1127 additions and 27 deletions

File diff suppressed because it is too large Load Diff

View File

@ -85,6 +85,28 @@ try {
$subject = "Confirmation: You're Registered for Building Scalable Apps with AppWizzy";
$webinar_date_obj = new DateTime('2025-11-19 10:00:00', new DateTimeZone('America/New_York'));
// --- PREPARE CALENDAR LINK ---
$event_title_cal = 'Building Scalable Apps with AppWizzy';
$event_description_cal = 'Professional Vibe-Coding Webinar. Join us to learn the fastest way to go from an idea to a working app you own.';
// Use the same webinar date as in the email body
$webinar_date_for_cal = new DateTime('2025-11-19 10:00:00', new DateTimeZone('America/New_York'));
// Convert to UTC for Google Calendar
$webinar_date_for_cal->setTimezone(new DateTimeZone('UTC'));
$start_time_utc_cal = $webinar_date_for_cal->format('Ymd\THis\Z');
// Add 1 hour for the end time
$webinar_date_for_cal->add(new DateInterval('PT1H'));
$end_time_utc_cal = $webinar_date_for_cal->format('Ymd\THis\Z');
$google_link = 'https://www.google.com/calendar/render?action=TEMPLATE' .
'&text=' . urlencode($event_title_cal) .
'&dates=' . $start_time_utc_cal . '/' . $end_time_utc_cal .
'&details=' . urlencode($event_description_cal) .
'&location=' . urlencode('Online') .
'&ctz=UTC';
$body_html = <<<HTML
<!DOCTYPE html>
<html lang="en">
@ -113,36 +135,16 @@ try {
<p style="font-size: 16px; line-height: 1.6;">We're excited to have you join us for this professional vibe-coding session.</p>
<div style="background-color: #f9f9f9; border-left: 4px solid #673ab7; padding: 15px 20px; margin: 20px 0;">
<p style="margin: 0; font-size: 16px;"><strong>Webinar Details:</strong></p>
<p style="margin: 10px 0 0; font-size: 16px;">{$webinar_date_obj->format('l, F j, Y | g:i A T')}</p>
<p style="margin: 10px 0 0; font-size: 16px;">{$webinar_date_obj->format('l, F j, Y')} | <strong>4PM CET</strong> | {$webinar_date_obj->format('g:i A T')}</p>
</div>
<p style="font-size: 16px; line-height: 1.6;">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.</p>
<p style="font-size: 16px; line-height: 1.6;"><strong>Your personal webinar access link will be emailed to you 1 day before the event.</strong></p>
<p style="text-align: center; margin-top: 30px;">
<a href="{$protocol}://{$host}/login.php" style="background: linear-gradient(135deg, #3f51b5 0%, #9c27b0 100%); color: #ffffff; padding: 12px 25px; text-decoration: none; border-radius: 8px; font-weight: bold;">Access Your Dashboard</a>
<a href="{$google_link}" style="background: linear-gradient(135deg, #3f51b5 0%, #9c27b0 100%); color: #ffffff; padding: 12px 25px; text-decoration: none; border-radius: 8px; font-weight: bold;">Add to Calendar</a>
</p>
</td>
</tr>
<!-- Speakers -->
<tr>
<td style="padding: 0 30px 30px;">
<h3 style="text-align: center; color: #1a237e; border-top: 1px solid #eeeeee; padding-top: 30px;">Meet the Speakers</h3>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" style="padding: 10px;">
<p style="margin: 0; font-weight: bold;">Philip Daineka</p>
<p style="margin: 5px 0 0; color: #777;">CEO, AppWizzy</p>
</td>
<td align="center" style="padding: 10px;">
<p style="margin: 0; font-weight: bold;">Alexandr Rubanau</p>
<p style="margin: 5px 0 0; color: #777;">Lead Engineer</p>
</td>
<td align="center" style="padding: 10px;">
<p style="margin: 0; font-weight: bold;">Alexey Vertel</p>
<p style="margin: 5px 0 0; color: #777;">Lead Engineer</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- Footer -->
<tr>
<td align="center" style="padding: 20px; background-color: #f4f4f4; border-top: 1px solid #dddddd;">
@ -163,9 +165,9 @@ HTML;
// --- PREPARE SUCCESS RESPONSE ---
$webinar_date = new DateTime('2025-11-19 10:00:00', new DateTimeZone('America/New_York'));
$webinar_date->setTimezone(new DateTimeZone('UTC'));
$start_time_utc = $webinar_date->format('Ymd H:i:s Z');
$start_time_utc = $webinar_date->format('Ymd\THis\Z');
$webinar_date->add(new DateInterval('PT1H')); // Assume 1 hour duration
$end_time_utc = $webinar_date->format('Ymd H:i:s Z');
$end_time_utc = $webinar_date->format('Ymd\THis\Z');
$event_title = 'Building Scalable Apps with AppWizzy at 4PM CET';
$event_description = 'Professional Vibe-Coding Webinar\n\nJoin us for this webinar at 4PM CET | 10AM EST | 7AM PST. The fastest way to go from an idea to a working app you own, running on your server, with your database, using real frameworks.';
@ -199,4 +201,4 @@ HTML;
catch (Exception $e) {
http_response_code(500);
echo json_encode(['success' => false, 'error' => 'An unexpected server error occurred. Please try again.']);
}
}