Hi,<br>
<br>My Code:<br> mapi.MAPIInitialize(None)<br> session = mapi.MAPILogonEx(0, MAPIProfile, None, mapi.MAPI_EXTENDED | mapi.MAPI_USE_DEFAULT)<br> <br>
I am trying to send a mail using the extended MAPI interface, I am new 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'd really helpfull.<br>
<br>Error:<br>
C:\Documents and Settings\Administrator\Desktop>python mapisend.py<br>
Traceback (most recent call last):<br>
File "mapisend.py", line 85, in <module><br>
SendEMAPIMail(SendSubject, SendMessage, SendTo, MAPIProfile=MAPIProfile)<br>
File "mapisend.py", line 23, in SendEMAPIMail<br>
mapi.MAPIInitialize(None)<br>
pywintypes.com_error: (-2147467259, 'Unspecified error', None, None)<br>
<br>
<br>