Dissable security message "" A program is trying to access e-mail addresses" while sending email
-
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
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[^]
-
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
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