eracuni/messages.py
def send_email(self) -> None:
        """
        Send email, UTF-8 encoded text
        """
        if self.config.email_enabled and self.message_body != '':
            message = f"""\
From: {self.config.email_address}
To: {self.config.receiver_email}
Subject: Novi računi

{self.message_body}
"""
            context = ssl.create_default_context()
            with smtplib.SMTP_SSL(self.config.smtp_server, self.config.ssl_port, context=context) as server:
                try:
                    server.login(self.config.email_address, self.config.email_password)
                    res = server.sendmail(
                        self.config.email_address, self.config.receiver_email, message.encode('utf8'))
                except:
                    print("Can't send email", file=sys.stderr)

        Send email, UTF-8 encoded text
        
Send email, UTF-8 encoded text
Send email UTF - 8 encoded text
def send_email(self) -> None:
        if self.config.email_enabled and self.message_body != '':
            message = f"""\
From: {self.config.email_address}
To: {self.config.receiver_email}
Subject: Novi računi
{self.message_body}
"""
            context = ssl.create_default_context()
            with smtplib.SMTP_SSL(self.config.smtp_server, self.config.ssl_port, context=context) as server:
                try:
                    server.login(self.config.email_address, self.config.email_password)
                    res = server.sendmail(
                        self.config.email_address, self.config.receiver_email, message.encode('utf8'))
                except:
                    print("Can't send email", file=sys.stderr)
def send_email ( self ) -> None : if self . config . email_enabled and self . message_body != '' : message = f"""\
From: {self.config.email_address}
To: {self.config.receiver_email}
Subject: Novi računi

{self.message_body}
""" context = ssl . create_default_context ( ) with smtplib . SMTP_SSL ( self . config . smtp_server , self . config . ssl_port , context = context ) as server : try : server . login ( self . config . email_address , self . config . email_password ) res = server . sendmail ( self . config . email_address , self . config . receiver_email , message . encode ( 'utf8' ) ) except : print ( "Can't send email" , file = sys . stderr )
Send email, UTF-8 encoded text
Send email UTF - 8 encoded text
"""
        Send email, UTF-8 encoded text
        """
self