outlook send email via command line

User avatar
sal21
PlatinumLounger
Posts: 4353
Joined: 26 Apr 2010, 17:36

outlook send email via command line

Post by sal21 »

I need to send a simple eamil to gss.italy@iol.it with object : TEST and boidy: access now!
Possible with a minimal command line.?
Tks.

note:
I use VBA for Excel

User avatar
HansV
Administrator
Posts: 78448
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: outlook send email via command line

Post by HansV »

It's possible to create and display an e-mail message using a simple command line, but not to send it; the user would have to click the Send button. You need to automate Outlook to send the message automatically (i.e. create an Outlook.Application object etc.)
Best wishes,
Hans

User avatar
Leif
Administrator
Posts: 7209
Joined: 15 Jan 2010, 22:52
Location: Middle of England

Re: outlook send email via command line

Post by Leif »

If it is truly simple, and you can send direct to a mailserver, you may be able to use SourceForge.net: SmtpSend - Project Web Hosting - Open Source Software and avoid using Outlook altogether.

I have used a similar type of command line software in the past with great ease, but that particular software is now obsolete. If you want further ideas, try Googling for "smtpsend vba"
Leif