Security problem within MAPI/Outlook

  • Thread starter Thread starter Tor Inge Rislaa
  • Start date Start date
T

Tor Inge Rislaa

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
 
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top