A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Mapi



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old September 27th 06, 10:23 PM posted to microsoft.public.outlook.program_vba
Rebekah
external usenet poster
 
Posts: 7
Default Mapi

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 03:07 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.