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> <<a href="mailto:jek@zer0.org">jek@zer0.org</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;">
On 2005-11-16 12:23 +1100, Mark Hammond <<a href="mailto:mhammond@skippinet.com.au">mhammond@skippinet.com.au</a>> wrote:<br>><br>> > B. I was asked to send emails through my company's exchange server. (will
<br>> > this count?)<br>> > Any pointers on how to do this otherwise?<br>><br>> If your exchange server is acting as an SMTP server you could just use<br>> smptlib. Otherwise you could use "extended MAPI", which is fully supported
<br>> by Python, but somewhat tricky to use. Also, something like:<br>><br>> app = Dispatch("Outlook.Application")<br>> new_msg = app.CreateItem(0)<br>> new_msg.Body = "hello"<br>> ...
<br>> new_msg.Send()<br>><br>> may work - I've actually no idea if it does, but something similar should :)<br>> The trick here would be to find docs for the Outlook object model (eg, VB<br>> code that uses it). 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><<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A1CEAD80-23E2-456F-8618-4DA50CC2C38C&displaylang=en">
http://www.microsoft.com/downloads/details.aspx?FamilyId=A1CEAD80-23E2-456F-8618-4DA50CC2C38C&displaylang=en</a>><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. If you want to get
<br>around that, either use Extended MAPI or the Outlook Redemption DLL:<br><<a href="http://www.dimastr.com/redemption">http://www.dimastr.com/redemption</a>><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>)