From 3aca69e84ecc46d67b167d79e845c0ccdb9a982e Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Sun, 5 Jan 2025 22:04:02 -0800 Subject: [PATCH] adding more debuging --- open-webui-send-email.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/open-webui-send-email.py b/open-webui-send-email.py index 8e63514..3e3bcdc 100644 --- a/open-webui-send-email.py +++ b/open-webui-send-email.py @@ -1,7 +1,7 @@ """ title: Send Email author: Josh Knapp -version: 0.2.0 +version: 0.4.0 description="Send email via SMTP to user specificed address" """ @@ -9,7 +9,7 @@ import subprocess, sys from pydantic import BaseModel, Field -# Try to import boto3, install if not present +# Try to import required packages, install if not present try: import smtplib from email.mime.text import MIMEText @@ -58,6 +58,7 @@ class Tools: def __init__(self): self.valves = self.Valves() + print(f"Debug Status {self.valves.DEBUG}") pass def send_email(self, to_address: str, subject: str, message: str) -> dict: @@ -72,6 +73,8 @@ class Tools: Returns: dict: Response containing success status and message """ + if self.valves.DEBUG: + print("Debug activated, sending email...") try: # Create message container msg = MIMEMultipart()