Solved

Sending Outlook Email From VB

Posted on 2003-12-04
5
501 Views
Last Modified: 2010-05-01
I am sending emails to people who are registered on my website.  I have written a program using VB 6.0 that sends the email for me.  When I run the program, a prompt comes up from Outlook saying (in so may words) that a program is trying to send email, do you want to allow this?  

This prompt comes up everytime.  I figure there has to be a way to either say yes to the prompt in code so I am not having to sit here forever and say yes to the prompt for each registered person in my mail list, or turn this feature off.  I am running Outlook 2000 on Win XP and I also have Norton anti-virus 2003.  Any ideas would be greatly appreciated.
0
Comment
Question by:jenniferd732
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 250 total points
ID: 9879076
This feature is to prevent that applications send e-mails without the user being warned. You can use ExpressClickYes to auto-click the message : http://www.express-soft.com/mailmate/clickyes.html

Better use a SMTP e-mailer like http://www.freevbcode.com/ShowCode.Asp?ID=109
0
 
LVL 8

Expert Comment

by:nishikanth
ID: 9879905
Might be due to object model guard

http://www.slipstick.com/outlook/esecup.htm#autosec
0
 
LVL 8

Expert Comment

by:nishikanth
ID: 9879921
also this
0
 
LVL 1

Expert Comment

by:puneesh
ID: 9896883
You must be storing E-Mail addresses of people who register onto your site. If the database of yours is Oracle or SQL Server, mails can be generated directly from database server. Oracle and SQL Server uses SMTP directly bypassing Outlook.

Let me know if u want help on the same
0
 

Author Comment

by:jenniferd732
ID: 9909151
I have sent email that is stored on SQL server using SMTP.  This situation is a little different.  I get the addresses from a data dump on the web server (mySQL database).  I wrote a program that reads in the data, creates the contacts in Outlook, and adds them a distribution list.  I then setup the email and the emails are then sent out one at a time.  The list of registered people is getting bigger and bigger making the program kind of useless because I have to sit there and click "yes" everytime.  I am getting ready to send another batch out in a few days so I am going to try to use the "click yes" utility from express-soft.  If you have any other ideas or know a way around this in mySQL that would be great too.  That would eliminated the need for the program all together.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question