Discussion:
GW MAPI - send email to address to in address book
(too old to reply)
ec42
2006-02-17 12:19:31 UTC
Permalink
Hi,

I'm trying to send email via MAPI and GW 6.5.1 to internet email
addresses that are not in the address book. I am using VB6, code below.
The emails get sent but they keep getting returned from System
Administrator. The returns are from System Administrator to the email
in RecipAddress (***@bloggs.com), with an attachment of the originally
sent email, which is just addressed to RecipDisplayName (Joe Bloggs).

MAPI_session.DownLoadMail = False
MAPI_session.LogonUI = False
MAPI_session.UserName = "Novell Default Settings"
MAPI_session.SignOn
MAPI_session.NewSession = True
MAPI_message.SessionID = MAPI_session.SessionID
MAPI_message.Compose
MAPI_message.RecipDisplayName = "Joe Bloggs"

MAPI_message.RecipAddress = ***@bloggs.com
MAPI_message.MsgSubject = "Dear Joe"
MAPI_message.MsgNoteText = "This is a test email"
MAPI_message.Send
MAPI_session.SignOff
Exit Sub

Any advice greatfully accepted.

Regards,
Ed Collins
ec42
2006-02-21 09:28:24 UTC
Permalink
Well in the end I gave up on the MAPI interface and its now all working
fine using the Object API.
Post by ec42
Hi,
I'm trying to send email via MAPI and GW 6.5.1 to internet email
addresses that are not in the address book. I am using VB6, code below.
The emails get sent but they keep getting returned from System
Administrator. The returns are from System Administrator to the email
sent email, which is just addressed to RecipDisplayName (Joe Bloggs).
MAPI_session.DownLoadMail = False
MAPI_session.LogonUI = False
MAPI_session.UserName = "Novell Default Settings"
MAPI_session.SignOn
MAPI_session.NewSession = True
MAPI_message.SessionID = MAPI_session.SessionID
MAPI_message.Compose
MAPI_message.RecipDisplayName = "Joe Bloggs"
MAPI_message.MsgSubject = "Dear Joe"
MAPI_message.MsgNoteText = "This is a test email"
MAPI_message.Send
MAPI_session.SignOff
Exit Sub
Any advice greatfully accepted.
Regards,
Ed Collins
Loading...