I dont think there is anything wrong with your code as much as it requires Outlook to be open while you do not want Outlook to be open.
Just slightly different from what you need.

It depends a little bit on your needs.
Mainly, if you need security, this might not be such a good way because it requires you to write your password in the code.
Alternatively, you could have it ask the user for a password.
but thats not fully automated.

In anycase, this is the way I send my emails.
If you are at home, you can use for example gmails smtp server.
If you are at work, you can use the company's smtp server.
the VBA. Not whatever "Blat" is.
http://www.dbforums.com/microsoft-ac...t-outlook.html