REDSNAKE: treba pres pythoni smtplib...
import smtplib
from email.message import EmailMessage
def send_mail(to_email, subject, message, server='mail.server.cz',
from_email='email@kdekoliv.cz'):
msg = EmailMessage()
msg['Subject'] = subject
msg['From'] = from_email
msg['To'] = ', '.join(to_email)
msg.set_content(message)
print(msg)
server = smtplib.SMTP(server)
server.set_debuglevel(1)
server.login(from_email, 'heslokmailu')
server.send_message(msg)
server.quit()
print('successfully sent the mail.')
send_mail(to_email=['email@kamkoliv.cz'],
subject='testovaci zprava', message='obsah testovaci zpravy.')