NOTE: this is about tarring up plain LXC (i.e. not LXD) containers without the benefits of btrfs or similar
shut down the respective container, e.g.
lxc-stop mycontainer
import smtplib | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
def send_html_mail(subject, body, to_addr, from_addr): | |
"""Send an HTML email using the given subject, body, etc.""" | |
# Create message container - the correct MIME type is multipart/alternative here! | |
message = MIMEMultipart('alternative') | |
message['subject'] = subject |