how to send email in command line?

  • Thread starter Thread starter linq936
  • Start date Start date
L

linq936

Hi,
I am using Outlook 2003.I have a bunch of jpg files need to send out
as email attachment. The only option I have is to run some command
script so that 1) all the emails are constructed with email address and
attachment are taken care and 2) all of them are sent out. If the 2nd
request is not possible, it is ok, I can click "Send" button on all the
constructed emails.

I checked out that Outlook has some command switches, such as,/a for
attachment, this should work for me, but I have some problem.

I run command like this, "outlook.exe /a path\myfile /m
someone@somewhere". The purpose is to send someone@somewhere an email
with myfile as attachment.

But I get error saying switch is wrong, check out the document, I
know /m "Only works in conjunction with the /c command-line parameter".

It seems to me I can either 1) have email address filled out or 2)
have attachment setted up.

Is this correct?

Do you know a way somehow I can have both done?

Thanks.
 
You may need to type in the full path to the outlook.exe and enclose it in
parenthesis (not the switch part).
 
Hi!

From my personal experience, if the files should be sent from command
line rather frequently, I would rather recommend to get some
stand-alone command line mail tool which is far more convenient that
using outlook. I am using febooti Command line email which provides all
necessary functions, but there are other command line mailers
available. Just type command line email in the google search box and
you will find your solution easily.

Regards!
 
Noel All said:
You may need to type in the full path to the outlook.exe and enclose
it in parenthesis (not the switch part).

Not parentheses, quotes.
 
Back
Top