Skip to content

Commit

Permalink
ci: test
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <[email protected]>
  • Loading branch information
R3DRUN3 committed Jan 10, 2024
1 parent 1974530 commit dad7ace
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions send_mail_report.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# SEND MAIL REPORT WITH PATCHED IMAGES

import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
Expand All @@ -19,7 +17,7 @@

# Prepare the HTML content
subject = 'IMMUNIZE: Patched Image Report'
html_body = '<h2>Patched Images 💉</h2><ul>'
html_body = '<h2>Patched Images:</h2><ul>'
for image in patched_images:
encoded_image_name = html.escape(image)
github_link = f'https://github.com/r3drun3/pkgs/container/immunize/{encoded_image_name}'
Expand All @@ -44,6 +42,6 @@
with smtplib.SMTP('smtp.gmail.com', 587) as server:
server.starttls()
server.login(email_address, email_password)
server.send_message(message, subtype='html')
server.sendmail(email_address, recipients, message.as_string())

print('Email sent successfully!')

0 comments on commit dad7ace

Please sign in to comment.