![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I have a program that uses the msmapi ocx to send a message. Through Outlook
Express, this works just fine. But, when I use Outlook - it places the messages in my outbox, but there is no "from" address. So, the messages bounces back immediately with a ndr of "Your message did not reach some or all of the intended recipients. Subject: Invoice Sent: 9/26/2006 3:10 PM The following recipient(s) could not be reached: 'recipient address here' on 9/26/2006 3:10 PM None of your e-mail accounts could send to this recipient. The sent item shows that there is nothing in the "from" address. My program is actually written in Cobol, but the calls it makes take the same form internally as VB calls: CREATE MAPISESSION OF MSMAPI HANDLE IN MAPISession. CREATE MAPIMESSAGES OF MSMAPI HANDLE IN MAPIMessage. MODIFY MAPISession DOWNLOADMAIL 0. MODIFY MAPISession SIGNON(). INQUIRE MAPISession SESSIONID Session_ID. MODIFY MAPIMessage SESSIONID = Session_ID. MODIFY MAPIMessage COMPOSE(). MODIFY MAPIMessage MSGSUBJECT = EMAIL-SUBJECT. MODIFY MAPIMessage MSGNOTETEXT = EMAIL-MESSAGE. MODIFY MAPIMessage RECIPDISPLAYNAME = RECIPIENT-ADDRESS. MODIFY MAPIMessage RECIPADDRESS = RECIPIENT-ADDRESS. MODIFY MAPIMessage @SEND(0). MODIFY MAPISession SIGNOFF(). DESTROY MAPIMessage. DESTROY MAPISession. As I said, this works perfectly in Outlook Express - but It will not get the "from" in Outlook. |
Ads |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
MAPI error | jackie | Outlook - Using Forms | 0 | August 18th 06 05:28 PM |
MAPI issue | mobile | Outlook - General Queries | 9 | June 11th 06 05:00 AM |
MAPI for email using VB | sujay | Outlook - Using Forms | 0 | June 9th 06 07:33 AM |
MAPI setup | Jo | Outlook - Installation | 2 | February 14th 06 08:51 PM |
How to use MAPI with an ISP | RGR. Jim | Outlook - Installation | 2 | February 1st 06 08:57 PM |