SendMail.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CSendMailApp application class. SendMail.cpp This is the main application source file that contains the a
本文实例为大家分享了python使用sendmail发送邮件的具体代码,供大家参考,具体内容如下
参考链接:How do I send mail from a Python scr ipt?
使用linux下的sendmail程序来发送邮件,利用popen函数(python docs关于popen函数)可以直接调用linux系统程序,需要指定程序所在的位置。
python代码:
#!/usr/bin/python
# -*- coding: UTF-8 -*-
#Author: Victor