Thanks for all the help guys.  It turns out that their exchange
server does act as an SMTP server.  So I'll just go that route for
now.<br>
<br>
-Greg<br>
<br><br><div><span class="gmail_quote">On 11/15/05, <b class="gmail_sendername">Joshua Kaderlan</b> &lt;<a href="mailto:jek@zer0.org">jek@zer0.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 2005-11-16 12:23 +1100, Mark Hammond &lt;<a href="mailto:mhammond@skippinet.com.au">mhammond@skippinet.com.au</a>&gt; wrote:<br>&gt;<br>&gt; &gt; B. I was asked to send emails through my company's exchange server.&nbsp;&nbsp;(will
<br>&gt; &gt; this count?)<br>&gt; &gt; Any pointers on how to do this otherwise?<br>&gt;<br>&gt; If your exchange server is acting as an SMTP server you could just use<br>&gt; smptlib.&nbsp;&nbsp;Otherwise you could use &quot;extended MAPI&quot;, which is fully supported
<br>&gt; by Python, but somewhat tricky to use.&nbsp;&nbsp;Also, something like:<br>&gt;<br>&gt; app = Dispatch(&quot;Outlook.Application&quot;)<br>&gt; new_msg = app.CreateItem(0)<br>&gt; new_msg.Body = &quot;hello&quot;<br>&gt; ...
<br>&gt; new_msg.Send()<br>&gt;<br>&gt; may work - I've actually no idea if it does, but something similar should :)<br>&gt; The trick here would be to find docs for the Outlook object model (eg, VB<br>&gt; code that uses it).&nbsp;&nbsp;This will obviously depend on Outlook being installed.
<br><br>You can download the Outlook 2003 Visual Basic Application Reference (which,<br>despite the name, is the Simple MAPI documentation; it uses VB for sample code<br>though) from MSDN:<br>&lt;<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A1CEAD80-23E2-456F-8618-4DA50CC2C38C&amp;displaylang=en">
http://www.microsoft.com/downloads/details.aspx?FamilyId=A1CEAD80-23E2-456F-8618-4DA50CC2C38C&amp;displaylang=en</a>&gt;<br><br>Doing what you suggest above (or something very similar to it) will probably<br>work, although it'll trigger the Outlook security dialog.&nbsp;&nbsp;If you want to get
<br>around that, either use Extended MAPI or the Outlook Redemption DLL:<br>&lt;<a href="http://www.dimastr.com/redemption">http://www.dimastr.com/redemption</a>&gt;<br>There are also a couple of apps which will allow you to use the regular Simple
<br>MAPI calls and programmatically suppress the dialog.<br><br><br>-Josh<br>_______________________________________________<br>Python-win32 mailing list<br><a href="mailto:Python-win32@python.org">Python-win32@python.org
</a><br><a href="http://mail.python.org/mailman/listinfo/python-win32">http://mail.python.org/mailman/listinfo/python-win32</a><br></blockquote></div><br><br clear="all"><br>-- <br>Gregory Piņero<br>Chief Innovation Officer
<br>Blended Technologies<br>(<a href="http://www.blendedtechnologies.com">www.blendedtechnologies.com</a>)