Prompt box when emailing via VBA

C

Chad

I am sending an email using VBA code. There are no issues with the code,
except if I use .Send then I get a prompt box to answer "yes, i'm aware of
this" action. Is there any way to avoid this prompt? I have many emails to
send via a loop and don't want to have to click yes for each email being sent.

Thanks in advance,
Chad
 
C

crferguson

I am sending an email using VBA code. There are no issues with the code,
except if I use .Send then I get a prompt box to answer "yes, i'm aware of
this" action. Is there any way to avoid this prompt? I have many emails to
send via a loop and don't want to have to click yes for each email being sent.

Thanks in advance,
Chad

To save Ron a post, here's a link to what can fix your problem. I
created an emailing class using his handy code and it works perfectly
without prompts whereas using the Outlook object (for example) prompts
the user for each email:

http://www.rondebruin.nl/sendmail.htm

Thanks Ron! Your code has saved me tons of time and effort!

Cory
 
C

Chad

I have seen Ron's post on doing this with CDO; however, the only way that
seems to work is to use the gmail approach and I don't have a gmail account
to use and I'd like the "from" in the email to come from a specific email
address. Is there a work around for Ron's work or another option? Thanks,

-Chad
 

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

Top