Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: how to send an email via Stata Command


From   Jeph Herrin <[email protected]>
To   [email protected]
Subject   Re: st: how to send an email via Stata Command
Date   Fri, 25 Jan 2013 14:48:44 -0500

Since you refer to D:\temp.txt, I assume you are using some version of Windows. In that case (ie, if you are not using some version of *nix) you'll need to either:

 a) Download and install a command line mail send utility; I use
    one called -bmail- which works pretty well. You will however need
    an SMTP server, which I think Outlook Express should require.

 b) Script it in PowerShell, which is a Microsoft command line
    environment. However, it will require much more effort, and I
    do not recommend it.

hth,
Jeph


On 1/25/2013 10:40 AM, Li Chuntao (Tony) wrote:
Dear Listers,

     I am quite interest in using the command of winexec because i want
to use stata command to execuate windows applications installed on my
computer. Suppose i want to send an email via outlook express
installed in my computer and the email is addressed to
[email protected] with an attachment file d:\temp.txt, is it possible
to write a one line command? Can anyone kindly tell me?

thanks

Tony
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index