Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending Mail through MAPI Controls (or another) FAST!!

Status
Not open for further replies.

Gutes

Programmer
Dec 5, 2001
16
AR
I'm trying to send mail in a VB application. The thing is that I've reached the MAPISession control and MAPIMessage Control, but I don't know how to specify the Server I want to connect to.
Do I have to be connected to the Internet and use that connection?
Is it possible to check different mail servers?
One thing I understood was the the LogOnUI property, tha pparently allows you to use like a SQL-Windows authentication but with a Network Connection, is that true?
Please Reply A.S.A.P.
 
MAPI works with the settings used to configure your Outlook so it therefore does not let you input any value.
If your Outlook Profile is set to use Integrated NT security, it will not prompt for a username or password even if mapisession.logonui=true
In your code
mapisession1.signon 'signon to the same server as your Outlook
If logon is successful, you can retrieve mail from your Exchange mailbox or send / forward etc.

If you have MSDN, look for Using MAPI Controls

PS. My applications that use MAPI don't work too well since I upgarded to Office XP as Outlook gives me security warnings whenever my applications sends a mail. eg. 'Another program is attempting to use your Email! Allow or Deny'

So I wouldn't recommend using MAPI. Rather use Winsock and create a true POP mail client.
A few people I know have now moved to jmail (
Good Luck

Let me know if you still need help with MAPI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top