help for email

Email from Stata

Syntax

email,
from(string)
to(string)
subject(string)
[body(string)
attachment(string)
directory(string)]

Description

email is compatible with Stata v 12.1 and requires Python 2.7.

email requires the user to specify email addresses for the sender and recipient as well as a subject line.
Additionally, if a file is to be attached the user must specify the file path to the attachment in the directory(string) option.

Options

to(string) use this option to specify where the email will be sent. ( Currently, emails can be sent to only a single user at a time.)

from(string) use this option to specify your email address.

body(string) this option is for adding text to the body of the email.

subject(string) use this to create a subject heading in the email.

attachment(string) specify the full filename (e.g., thisfile.txt) to be attached to the email here.

directory(string) specify the file path to the attached file here ( e.g., "/Users/me/Desktop/This/Folder With/My_Files/")

Examples

email, to(you@thisaddress.com) from(me@me.com) subject("This is just a test") body("No. Seriously. It is just a test.") attachment(myfile.txt) directory("/Users/my/Folder Is/Here/")

Author

William R. Buchanan

Executive Director & Founder

Performing Arts & Creative Education Solutions Consulting

http://www.paces-consulting.org