From f333759a576c3f8bf0a6234b7dc73a87fcc936cf Mon Sep 17 00:00:00 2001 From: darkicewolf50 Date: Sat, 19 Apr 2025 15:05:35 -0600 Subject: [PATCH] feat(email sender): started to fix email css --- InterviewBooking/send_email.py | 120 ++++++++++++++++++++++++--------- Other Items/web1.html | 111 ++++++++++++++++++++++-------- 2 files changed, 172 insertions(+), 59 deletions(-) diff --git a/InterviewBooking/send_email.py b/InterviewBooking/send_email.py index eb209d5..3d60e67 100644 --- a/InterviewBooking/send_email.py +++ b/InterviewBooking/send_email.py @@ -45,38 +45,94 @@ def send_email(interviewee_email="darkicewolf50@gmail.com", interviewee_name="br # Message body body = f''' - - - Interview Invitation - - -

Dear {interviewee_name},

-

Your interview has been scheduled on {date} at {start_time} MST.

-

Your interview location is at {location} or will be emailed to you.

-

Please ensure to be available at the designated time.

- - - - - - -

Best regards,

-

UCalgary Baja Interview Team

- UCalgary Baja Team - - - ''' - + + + Interview Invitation + + +

Dear {interviewee_name},

+

Your interview has been scheduled on {date} at {start_time}

+

Please ensure to be available at the designated time.

+ + + + + +
+ + Google Calendar + Add to Google Calendar + + + + Outlook Logo + Add to Outlook Calendar + +
+

Best regards,

+

UCalgary Baja Interview Team

+ UCalgary Baja Logo +

+ If you need to change the date or cancel please email + uofcbaja@gmail.com + or reply all to this email +

+ + +''' + msg.attach(MIMEText(body, 'html')) try: diff --git a/Other Items/web1.html b/Other Items/web1.html index 5049285..5a84550 100644 --- a/Other Items/web1.html +++ b/Other Items/web1.html @@ -1,29 +1,86 @@ - - Interview Invitation - - -

Dear {interviewee_name},

-

Your interview has been scheduled on {date} at {start_time}

-

Please ensure to be available at the designated time.

- - - - - - -

Best regards,

-

UCalgary Baja Interview Team

- UCalgary Baja Team - + + Interview Invitation + + +

Dear {interviewee_name},

+

Your interview has been scheduled on {date} at {start_time}

+

Please ensure to be available at the designated time.

+ + + + + +
+ + Google Calendar + Add to Google Calendar + + + + Outlook Logo + Add to Outlook Calendar + +
+

Best regards,

+

UCalgary Baja Interview Team

+ UCalgary Baja Logo +

+ If you need to change the date or cancel please email + uofcbaja@gmail.com + or reply all to this email +

+