twistd工具搭建mail服务器
来源:互联网 发布:阿里云备案转入腾讯云 编辑:程序博客网 时间:2024/05/21 08:47
客户端源代码
from twisted.internet import reactorfrom twisted.mail.smtp import sendmailfrom twisted.python import logfrom email.mime.text import MIMETextimport syslog.startLogging(sys.stdout)#host = 'aspmx.l.google.com'host = 'localhost'#sender = 'secretadmirer@example.com'sender = 'secretadmirer@unknown.com'#receipients = ['twistedechobot@gmail.com']#receipients = ['recipients@localhost']receipients = ['ds@example.com']msg = MIMEText('''Violets are blueTwisted is helpingForge emails to you!''')msg['subject'] = 'Roses are red'msg['from'] = '"Secret Admirer" <%s>' % (sender,)msg['to'] = ','.join(receipients)#deferred = sendmail(host,sender,receipients, msg.as_string(),port=25)deferred = sendmail(host, sender,receipients, msg.as_string(),port=8025)deferred.addBoth(lambda x:reactor.stop())reactor.run()
twistd.py工具命令:
0 0
- twistd工具搭建mail服务器
- twistd一行服务器的方法,搭建DNS、Web文件服务器
- 3-6搭建mail服务器
- PHP mail()本地邮箱服务器搭建全过程
- 借Stunnel工具保护E-mail服务器
- webmail邮件服务器搭建_U-Mail邮件服务器
- Mail服务器
- CentOS 搭建postfix邮件服务器 配置php mail
- 可视化工具搭建SVN服务器
- [转]Mail服务器
- linux 架设Mail服务器
- 架设mail服务器
- 如何检测mail服务器
- mail服务器初级 安装
- Mail服务器检测
- Mail服务器原理
- 公司mail服务器备份
- centos 安装mail服务器
- ENVI 5.0下载及常见问题汇总
- 服务器上编译Android程序
- MAC OS X 文件系统介绍
- 分治法:寻找最大子数组
- PHP javascript 实现将将一句话分解成包含所有单词的一个数组
- twistd工具搭建mail服务器
- AndroidMainFest.xml file missing!
- <PY>构造指定大小的笛卡尔空间
- 鲁大师实用教程之常见问题大全
- 个人网站开发1
- jquery遍历之parent()和parents()的区别及parentsUntil()方法详解
- 借助nbd修改img文件
- Linux常用命令总结
- Linux2.6.32移植到MINI2440(1)初步移植