sendmail error

M

marta

Hi,
I am using the SendMail action in my macro, when it runs I
get the following Outlook message:

"A program is trying to automatically send e-mail on your
behalf. Do you want to allow this?
If this is unexpected, it may be a virus and you should
choose "No"."

Here's my code:

ActiveWorkbook.SendMail Recipients:=Array
("recipient1", "recipient2")

Is there any way to by-pass this dialog box?

Thanks,
Marta
 

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