Hi,<br>
<br>My Code:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mapi.MAPIInitialize(None)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; session = mapi.MAPILogonEx(0, MAPIProfile, None, mapi.MAPI_EXTENDED | mapi.MAPI_USE_DEFAULT)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; I am&nbsp; trying to send a mail&nbsp; using the extended MAPI interface, I am new&nbsp; to work with MAPI.<br>
I am trying to execute your code,i getting the following exception, and
a popup message of Either there is no default mail client or the
current mail client cannot fullfill the messaging request,please run
Microsoftoffice outlookand set it as the defaukt mail client.<br>
I am using thunderbird as my default mail client , then i set my outlook as my default mail client.its running fine.<br>
can u tell me is there possiblites to run the code with out changing the default mail client to Ms Outlook.<br>
<br>
if could u find me a solution,that&#39;d really helpfull.<br>
<br>Error:<br>
C:\Documents and Settings\Administrator\Desktop&gt;python mapisend.py<br>
Traceback (most recent call last):<br>
&nbsp; File &quot;mapisend.py&quot;, line 85, in &lt;module&gt;<br>
&nbsp;&nbsp;&nbsp; SendEMAPIMail(SendSubject, SendMessage, SendTo, MAPIProfile=MAPIProfile)<br>
&nbsp; File &quot;mapisend.py&quot;, line 23, in SendEMAPIMail<br>
&nbsp;&nbsp;&nbsp; mapi.MAPIInitialize(None)<br>
pywintypes.com_error: (-2147467259, &#39;Unspecified error&#39;, None, None)<br>
<br>
<br>