ec42
2006-02-17 12:19:31 UTC
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
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