我在运行一些脚本的gitlab ci管道中使用了一个openSUSE Tumbleweed容器。在该脚本中,我需要在某个时间点发送一封包含某些内容的电子邮件。在容器中,我正在安装后缀并在/etc/postfix/main.cf中配置该中继服务器。下面的命令在我的笔记本电脑上使用相同的中继服务器:
echo "This is the body of the email" | mail -s "This is th
我正在使用Python创建一个注册系统,将值添加到SQLite数据库中。使用我的代码,运行时不会出现任何错误,但是数据不会添加到表中。import sqlite3 as db #Import the SQLite module as dbfrom email.mime.text import MIMEText #Importing the t