R
Rebekah
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.
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.