wysylka maili
This commit is contained in:
		
							
								
								
									
										3
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								app.py
									
									
									
									
									
								
							@@ -208,7 +208,8 @@ def send_email_batch(users, smtp_config, mails_per_pack=100, time_per_pack=60, d
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            try:
 | 
					            try:
 | 
				
			||||||
                msg = MIMEMultipart()
 | 
					                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['To'] = user['mail']
 | 
				
			||||||
                msg['Subject'] = "Twoje konto w unitraklub.pl"
 | 
					                msg['Subject'] = "Twoje konto w unitraklub.pl"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user