mail
Submitted by: DK
The handler below uses three unix commands;
echo, | (ie pipe), and mail with option -s to send an email with body and subject to a recipient.
The sender will be (the owner of your computer at the name of your computer), if you are the only unix user on your machine.
I'm not sure of all the requirements or limitations of this unix Mail command but it worked to send myself an email.
As written, the handler requires that you put it in some object (a button perhaps) and that you create a field named, "the result of merge".
The field will contain the text of the command that you could paste into a terminal window (command line) and execute by pressing return.
It should look like this:
echo "This will be the e-mail message's body" | mail -s "option -s, the e-mail's subject" recipient@domain.edu
The field and the line (put cmd & cr after cd fld "the result of merge") are not neccessary.
Watch for word wrap in the text shown; there should be a space just before the recipient's email address.
on mouseUp
put "echo `message body` | mail -s `subject` recipient@domain.edu") into cmd
put cmd & cr after cd fld "the result of merge"
do shell(merge(cmd))
end mouseUp
Comments (0)
You don't have permission to comment on this page.