diff --git a/app.py b/app.py index 2c21c25..9445345 100644 --- a/app.py +++ b/app.py @@ -208,7 +208,8 @@ def send_email_batch(users, smtp_config, mails_per_pack=100, time_per_pack=60, d try: msg = MIMEMultipart() - msg['From'] = smtp_config["user"] + from_email = smtp_config["user"] or "unitra@unitraklub.pl" + msg['From'] = f"Unitra-Klub <{from_email}>" msg['To'] = user['mail'] msg['Subject'] = "Twoje konto w unitraklub.pl"