?
Solved

Sending Outlook Email From VB

Posted on 2003-12-04
5
Medium Priority
?
502 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 1000 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

752 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