Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Dissable security message "" A program is trying to access e-mail addresses" while sending email

Dissable security message "" A program is trying to access e-mail addresses" while sending email

Scheduled Pinned Locked Moved Visual Basic
security
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amanjot
    wrote on last edited by
    #1

    I am trying to send an email from a Vb.code and the following outlook security warning pops up: "A program is trying to address emial address....." How could I overide this security message!! Thanks, Aman

    W B 2 Replies Last reply
    0
    • A Amanjot

      I am trying to send an email from a Vb.code and the following outlook security warning pops up: "A program is trying to address emial address....." How could I overide this security message!! Thanks, Aman

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      AFAIK the Exchange administrator can disable this message or you can buy a third party product like: http://www.mapilab.com/dev/outlook_security/[^]

      The need to optimize rises from a bad design.My articles[^]

      1 Reply Last reply
      0
      • A Amanjot

        I am trying to send an email from a Vb.code and the following outlook security warning pops up: "A program is trying to address emial address....." How could I overide this security message!! Thanks, Aman

        B Offline
        B Offline
        Bharat Jain
        wrote on last edited by
        #3

        I would suggest to use SMTP Client instead of outlook component to send an email using an application SmptClient is an inbuilt .net class , following is an example of using smptClient to send a email.

            Dim smtpClient As New Net.Mail.SmtpClient()
            Dim mail As New Net.Mail.MailMessage()
            'create the message to be sent 
            mail.To.Add("test@test.com") ' Enter the Email of the person you want to send the mail to
            mail.From = New Net.Mail.MailAddress("username@gmail.com", "Your Display Name") ' Enter Your email address
            mail.Subject = "Test Message"
            mail.Body = "This is a test message"
            ' Prepare the client to send the above message
            'Attach the file as attachment 
            mail.Attachments.Add(new System.Net.Mail.Attachment("yourFileName.xls"))
            smtpClient.Host = "smtp.gmail.com"
            smtpClient.EnableSsl = True
            smtpClient.Port = 587
            smtpClient.Credentials = New Net.NetworkCredential("username@gmail.com", "password") 'Enter username and password of the account , you want to use to send mail
            smtpClient.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
            smtpClient.Send(mail)
        

        There was a similar question posted http://www.codeproject.com/script/Forums/View.aspx?fid=1646&msg=2899587[^] Hope the information is helpful

        -Regards Bharat Jain bharat.jain.nagpur@gmail.com

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups