<br><br><div><span class="gmail_quote">On 22 Mar 2006 08:31:16 -0800, <b class="gmail_sendername">EdWhyatt</b> <<a href="mailto:ed.whyatt@gmail.com">ed.whyatt@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So it's a restriction of Python?<br><br>What I am trying to simulate here is the sending of mail to addresses<br>solely in the CC and/or BCC fields - both of which are possible through<br>Outlook.<br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">
http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br>Python will quite happily do this too.  <br><br>The RFC issue is a red herring,  in practice there are very few SMTP servers that will refuse an email that is missing 1 or more of the required headers.  Whether the email passes spam filters is a different matter.
<br><br>For fun,  try this. (add your own gmail address, or other address and mail server)<br><br>>>> import smtplib<br>>>> server = smtplib.SMTP('<a href="http://gsmtp163.google.com">gsmtp163.google.com
</a>')<br>>>> server.sendmail('','addr <a href="mailto:removed@gmail.com">removed@gmail.com</a>','hello') #  '' = 2x '  not 1x "<br><br>and this is the email that appeared in my gmail account almost instantly.  :):)   It was sent with no SMTP-FROM address,  and has no subject field and no address fields.
<br><br><pre>X-Gmail-Received: a567a9150c14fda1ff4d6807593843ef2ffde3ac<br>Delivered-To: addr <a href="mailto:removed@gmail.com">removed@gmail.com</a><br>Received: by <a href="http://10.49.69.7">10.49.69.7</a> with SMTP id w7cs2971nfk;
<br>        Wed, 22 Mar 2006 10:19:04 -0800 (PST)<br>Received: by <a href="http://10.36.250.61">10.36.250.61</a> with SMTP id x61mr1847789nzh;<br>        Wed, 22 Mar 2006 10:19:03 -0800 (PST)<br>Return-Path: <None><br>
Received: from TW-JVC.tdw (<a href="http://cpc1-rdng1-0-0-cust636.winn.cable.ntl.com">cpc1-rdng1-0-0-cust636.winn.cable.ntl.com</a> [<a href="http://82.21.66.125">82.21.66.125</a>])<br>        by <a href="http://mx.gmail.com">
mx.gmail.com</a> with ESMTP id 34si1261330nza.2006.03.22.10.19.03;<br>        Wed, 22 Mar 2006 10:19:03 -0800 (PST)<br>Received-SPF: neutral (<a href="http://gmail.com">gmail.com</a>: <a href="http://82.21.66.125">82.21.66.125
</a> is neither permitted nor denied by best guess record for domain of None)<br>Date: Wed, 22 Mar 2006 10:19:03 -0800 (PST)<br>Message-Id: <<a href="mailto:44219517.7a5d6a13.61b1.3c2fSMTPIN_ADDED@mx.gmail.com">44219517.7a5d6a13.61b1.3c2fSMTPIN_ADDED@mx.gmail.com
</a>><br><br>hello</pre><br>