<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu,debian,redhat -linuxany.com &#187; mail</title>
	<atom:link href="http://www.linuxany.com/archives/tag/mail/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Jan 2012 08:59:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Python 邮件模块小应用</title>
		<link>http://www.linuxany.com/archives/1605.html</link>
		<comments>http://www.linuxany.com/archives/1605.html#comments</comments>
		<pubDate>Sun, 31 Jul 2011 08:46:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.linuxany.com/?p=1605</guid>
		<description><![CDATA[#------方案1--------------------- #!/bin/env python import&#160;email.MIMEText email_body=&#34;&#34;&#34; hello,this is a python mail test!&#34;&#34;&#34;&#160;#定义邮件内容 msg=email.MIMEText.MIMEText(email_body) msg['To']=&#34;blog@linuxany.com&#34;&#160;#定义邮件发送目标地址 msg['FROM']=&#34;webmaster@linuxany.com&#34;&#160;#定义邮件发送源地址 msg['Subject']=&#34;this is a python mail test&#34;&#160;#定义邮件主题 print&#160;msg.as_string() 输出结果如下: Content-Type: text/plain; charset=”us-ascii”MIME-Version: 1.0Content-Transfer-Encoding: 7bitTo: blog@linuxany.comFROM: webmaster@linuxany.comSubject: this is a python mail testhello,this is a test! #------方案2--------------------- #mailer :http://pypi.python.org/pypi/mailer &#160; import&#160;mailer &#160; message=mailer.Message() message.From=&#34;linuxany@gmail.com&#34; message.To=&#34;linuxany@qq.com&#34; message.Subject=&#34;Hi linuxany&#34; message.Body=&#34;Hello world!&#34; &#160; server=mailer.Mailer('smtp.gmail.com:587') server.use_tls=True&#160;#gmail用到了starttls命令 &#160; [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/1605.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>python:支持附件的邮件发送函数</title>
		<link>http://www.linuxany.com/archives/709.html</link>
		<comments>http://www.linuxany.com/archives/709.html#comments</comments>
		<pubDate>Sun, 21 Dec 2008 10:50:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=709</guid>
		<description><![CDATA[使用方法： 　　mail(邮件服务器地址,发件人,收件人,主题,邮件内容) import smtplib, sys, MimeWriter, StringIO, base64, os, time &#160; &#160; &#160; def&#160;mail(serverURL=None, sender='', to='', subject='', text=''): &#160; &#160; &#160; &#160; &#160; &#160; message = StringIO.StringIO() &#160; &#160; &#160; &#160; writer = MimeWriter.MimeWriter(message) &#160; &#160; &#160; &#160; writer.addheader('Subject', subject) &#160; &#160; &#160; &#160; writer.startmultipartbody('mixed') &#160; &#160; &#160; &#160; &#160; &#160; # start off with [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/709.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Delete Mails From Or To A Specific Email Address From Your Mail Queue (Postfix)</title>
		<link>http://www.linuxany.com/archives/459.html</link>
		<comments>http://www.linuxany.com/archives/459.html#comments</comments>
		<pubDate>Thu, 02 Oct 2008 13:51:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PostFix]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=459</guid>
		<description><![CDATA[If you get hit by a spam attack that floods your server with hundreds/thousands of emails from the same sender email address or to the same recipient email address, you can clean your mail queue from these emails with one single command before the mail flood takes your server to its knees. You can check [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/459.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

