Board index » Visual Studio » Security problem within MAPI/Outlook

Security problem within MAPI/Outlook

Visual Studio256
I have an application sending e-mail within my organization based on an

existing MAPI session. The users are using Outlook as the primary e-mail

program. Based on the security updates within Outlook I am no longer able to

automate the internal mailing trough my VB program, because the user must

approve of the program to get access to the address book every time an

e-mail is processed. Is there a workaround that enable this kind of

functionality. (All my clients are connected to the same Exchange Server)



TIRislaa


-
 

Re:Security problem within MAPI/Outlook

Hello there,



isn't it better to use System.Web.Mail instead of MAPI.

I used to use MAPI to send e-mail from within my vb-application and I

experienced the same problem.



Now, I'm using System.Web.Mail and I don't have these problems anymore!



Example:

Imports System.Web.Mail

Dim MyMail as SMTPMail

Dim MyMessage as new MailMessage

MyMail.SMTPServer = 'your server name

MyMessage.To = ' the TO-addressee

MyMessage.From = 'the from addressee

MyMessage.Subject = "This is the subject of your message"

....

MyMail.Send(MyMessage)

...



Hope this helps!



Regards,



Q

"Tor Inge Rislaa" <nospam.tor.inge@rislaa.no>wrote in message

Quote
I have an application sending e-mail within my organization based on an

existing MAPI session. The users are using Outlook as the primary e-mail

program. Based on the security updates within Outlook I am no longer able

to

automate the internal mailing trough my VB program, because the user must

approve of the program to get access to the address book every time an

e-mail is processed. Is there a workaround that enable this kind of

functionality. (All my clients are connected to the same Exchange Server)



TIRislaa









-

Re:Security problem within MAPI/Outlook

Hello again,



If I remember correctly, you can check with MAPI if the addressee that you

are using is correct.

I don't know anymore how this is done but,

I thought that if you don't perform this check you won't have these

problems.

But I'm not very sure of this.



Could you keep me informed if any of these solutions were any good?



Regards,



Q

"Tor Inge Rislaa" <nospam.tor.inge@rislaa.no>wrote in message

Quote
I have an application sending e-mail within my organization based on an

existing MAPI session. The users are using Outlook as the primary e-mail

program. Based on the security updates within Outlook I am no longer able

to

automate the internal mailing trough my VB program, because the user must

approve of the program to get access to the address book every time an

e-mail is processed. Is there a workaround that enable this kind of

functionality. (All my clients are connected to the same Exchange Server)



TIRislaa









-